Fog::Collection
# File lib/fog/softlayer/models/network/ips.rb, line 24 def all(filters = filters) self.filters = filters ips = service.get_ip_addresses.body ips.each_with_index do |ip,i| if global_records.keys.include?(ip['id']) ips[i] = parse_global_ip_record(service.get_global_ip_address(global_records[ip['id']]['id']).body) end end load(ips) end
# File lib/fog/softlayer/models/network/ips.rb, line 37 def by_address(address) ip = service.get_ip_addresses.body.select do |ip| ip['ipAddress'] == address end.first new(ip) if ip end
# File lib/fog/softlayer/models/network/ips.rb, line 44 def get(id) if global_records.keys.include?(id) response = service.get_global_ip_address(global_records[id]['id']).body ip = parse_global_ip_record(response) else ip = service.get_ip_address(id).body end new(ip) if ip rescue Fog::Network::Softlayer::NotFound nil end
Generated with the Darkfish Rdoc Generator 2.