Sha256: 3f8247e0696b52761058ce4cd2ca6bf58789688952298b19499b7101a70f36f0
Contents?: true
Size: 640 Bytes
Versions: 19
Compression:
Stored size: 640 Bytes
Contents
# # Author:: Matt Eldridge (<matt.eldridge@us.ibm.com>) # © Copyright IBM Corporation 2014. # # LICENSE: MIT (http://opensource.org/licenses/MIT) # require 'fog/softlayer/models/network/subnet' module Fog module Network class Softlayer class Subnets < Fog::Collection attribute :filters model Fog::Network::Softlayer::Subnet def all load(service.list_subnets.body) end def get(id) if subnet = service.get_subnet(id).body new(subnet) end rescue Fog::Network::Softlayer::NotFound nil end end end end end
Version data entries
19 entries across 17 versions & 3 rubygems