class Fog::Network::Softlayer::Subnets
Public Instance Methods
all()
click to toggle source
# File lib/fog/softlayer/models/network/subnets.rb, line 18 def all load(service.list_subnets.body) end
get(id)
click to toggle source
# File lib/fog/softlayer/models/network/subnets.rb, line 22 def get(id) if subnet = service.get_subnet(id).body new(subnet) end rescue Fog::Network::Softlayer::NotFound nil end