Sha256: 6650caafd769b2be43ed14185b0cdaa707b14b93c0dc6ed740189b6af00742dc

Contents?: true

Size: 648 Bytes

Versions: 25

Compression:

Stored size: 648 Bytes

Contents

require 'fog/ecloud/models/compute/ip'

module Fog
  module Compute
    class Ecloud
      class Ips < Fog::Ecloud::Collection

        model Fog::Compute::Ecloud::Ip

        undef_method :create

        attribute :href

        def all
          check_href!( :messages => "Ips href of a Network you want to enumerate" )
          if data = connection.get_network_ips(href).body[:IpAddress]
            load(data)
          end
        end

        def get(uri)
          if data = connection.get_network_ip(uri).body
            new(data)
          end
        rescue Fog::Errors::NotFound
          nil
        end

      end
    end
  end
end

Version data entries

25 entries across 25 versions & 7 rubygems

Version Path
brightbox-cli-0.18.1 lib/brightbox-cli/vendor/fog/lib/fog/ecloud/models/compute/ips.rb
michiels-fog-1.3.1 lib/fog/ecloud/models/compute/ips.rb
ftl-0.2.0 vendor/bundle/gems/fog-1.3.1/lib/fog/ecloud/models/compute/ips.rb
brightbox-cli-0.18.0 lib/brightbox-cli/vendor/fog/lib/fog/ecloud/models/compute/ips.rb
fog-1.3.1 lib/fog/ecloud/models/compute/ips.rb
fog-1.3.0 lib/fog/ecloud/models/compute/ips.rb
brightbox-cli-0.17.5 lib/brightbox-cli/vendor/fog/lib/fog/ecloud/models/compute/ips.rb
fog-1.2.0 lib/fog/ecloud/models/compute/ips.rb
ktheory-fog-1.1.2 lib/fog/ecloud/models/compute/ips.rb
brightbox-cli-0.17.4 lib/brightbox-cli/vendor/fog/lib/fog/ecloud/models/compute/ips.rb
brightbox-cli-0.17.3 lib/brightbox-cli/vendor/fog/lib/fog/ecloud/models/compute/ips.rb
brightbox-cli-0.17.2 lib/brightbox-cli/vendor/fog/lib/fog/ecloud/models/compute/ips.rb
brightbox-cli-0.17.1 lib/brightbox-cli/vendor/fog/lib/fog/ecloud/models/compute/ips.rb
brightbox-cli-0.17.0 lib/brightbox-cli/vendor/fog/lib/fog/ecloud/models/compute/ips.rb
fog-1.1.2 lib/fog/ecloud/models/compute/ips.rb
fog_tractical-1.1.4 lib/fog/ecloud/models/compute/ips.rb
fog_tractical-1.1.3 lib/fog/ecloud/models/compute/ips.rb
brightbox-cli-0.16.0 lib/brightbox-cli/vendor/fog/lib/fog/ecloud/models/compute/ips.rb
fog-1.1.1 lib/fog/ecloud/models/compute/ips.rb
fog-1.1.0 lib/fog/ecloud/models/compute/ips.rb