Sha256: 73908d337d4751dd13fed794e7868782bb826d4cfa5d7c1d7090c97c32d81bd7

Contents?: true

Size: 653 Bytes

Versions: 8

Compression:

Stored size: 653 Bytes

Contents

require 'lib/fog/vcloud/terremark/ecloud/models/ip'

module Fog
  class Vcloud
    module Terremark
      class Ecloud

        class Ips < Fog::Vcloud::Collection

          model Fog::Vcloud::Terremark::Ecloud::Ip

          undef_method :create

          attribute :href

          def all
            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
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
fog-0.3.7 lib/fog/vcloud/terremark/ecloud/models/ips.rb
fog-0.3.6 lib/fog/vcloud/terremark/ecloud/models/ips.rb
fog-0.3.5 lib/fog/vcloud/terremark/ecloud/models/ips.rb
fog-0.3.4 lib/fog/vcloud/terremark/ecloud/models/ips.rb
fog-0.3.3 lib/fog/vcloud/terremark/ecloud/models/ips.rb
fog-0.3.2 lib/fog/vcloud/terremark/ecloud/models/ips.rb
fog-0.3.1 lib/fog/vcloud/terremark/ecloud/models/ips.rb
fog-0.3.0 lib/fog/vcloud/terremark/ecloud/models/ips.rb