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