Sha256: 3d2178a10966e853fb7403606f85c5e83cc1aa089ba081f9088ff1d2cbb43743
Contents?: true
Size: 613 Bytes
Versions: 7
Compression:
Stored size: 613 Bytes
Contents
require 'fog/core/collection' require 'fog/compute/models/ninefold/address' module Fog module Compute class Ninefold class Addresses < Fog::Collection model Fog::Compute::Ninefold::Address def all data = connection.list_public_ip_addresses load(data) end def get(identifier) return nil if identifier.nil? || identifier == "" data = connection.list_public_ip_addresses(:id => identifier) if data.empty? nil else new(data[0]) end end end end end end
Version data entries
7 entries across 7 versions & 3 rubygems