Sha256: 6351fc294e5357aab2898624edbb21d44d1b01d5ac90281c097547393778ead7
Contents?: true
Size: 709 Bytes
Versions: 65
Compression:
Stored size: 709 Bytes
Contents
require 'fog/ecloud/models/compute/ip_address' module Fog module Compute class Ecloud class IpAddresses < Fog::Ecloud::Collection identity :href model Fog::Compute::Ecloud::IpAddress def all data = service.get_network(href).body data = if data[:IpAddresses] data[:IpAddresses][:IpAddress] else data end data = data.nil? ? [] : data load(data) end def get(uri) if data = service.get_ip_address(uri) new(data.body) end rescue Fog::Errors::NotFound nil end end end end end
Version data entries
65 entries across 65 versions & 6 rubygems