Sha256: 660a8b46e9fe7444df0aa76c2135a6677c8365843b198e560d5edf27e10a4d73
Contents?: true
Size: 613 Bytes
Versions: 38
Compression:
Stored size: 613 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 = 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
38 entries across 38 versions & 13 rubygems