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

Version Path
fog-1.38.0 lib/fog/ninefold/models/compute/addresses.rb
fog-1.37.0 lib/fog/ninefold/models/compute/addresses.rb
fog-1.36.0 lib/fog/ninefold/models/compute/addresses.rb
fog-1.35.0 lib/fog/ninefold/models/compute/addresses.rb
fog-2.0.0.pre.0 lib/fog/ninefold/models/compute/addresses.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-1.32.0/lib/fog/ninefold/models/compute/addresses.rb
fog-1.34.0 lib/fog/ninefold/models/compute/addresses.rb
fog-1.33.0 lib/fog/ninefold/models/compute/addresses.rb
fog-1.32.0 lib/fog/ninefold/models/compute/addresses.rb
fog-1.31.0 lib/fog/ninefold/models/compute/addresses.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/lib/fog/ninefold/models/compute/addresses.rb
fog-1.30.0 lib/fog/ninefold/models/compute/addresses.rb
fog-1.29.0 lib/fog/ninefold/models/compute/addresses.rb
fog-1.28.0 lib/fog/ninefold/models/compute/addresses.rb
fog-1.27.0 lib/fog/ninefold/models/compute/addresses.rb
fog-1.26.0 lib/fog/ninefold/models/compute/addresses.rb
fog-1.25.0 lib/fog/ninefold/models/compute/addresses.rb
nsidc-fog-1.24.1 lib/fog/ninefold/models/compute/addresses.rb
fog-1.24.0 lib/fog/ninefold/models/compute/addresses.rb
ns-fog-1.22.11 lib/fog/ninefold/models/compute/addresses.rb