Sha256: 680e87aad4baa530a6957c9a9e0099f35d7c61b47b3cf287021822b2f30169d3
Contents?: true
Size: 590 Bytes
Versions: 11
Compression:
Stored size: 590 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 = connection.get_ip_addresses(href).body[:IpAddresses][:IpAddress] data = data.nil? ? [] : data load(data) end def get(uri) if data = connection.get_ip_address(uri) new(data.body) end rescue Fog::Errors::NotFound nil end end end end end
Version data entries
11 entries across 11 versions & 7 rubygems