Sha256: ff711215b3d78788e7cc4f9cdcab5f746e4ce7b44a0d3bc15ebe0262e4def63d

Contents?: true

Size: 602 Bytes

Versions: 30

Compression:

Stored size: 602 Bytes

Contents

module Fog
  module Vcloud
    module Terremark
      module 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

30 entries across 30 versions & 2 rubygems

Version Path
fog-0.2.10 lib/fog/vcloud/terremark/ecloud/models/ips.rb
fog-0.2.9 lib/fog/vcloud/terremark/ecloud/models/ips.rb
fog-0.2.8 lib/fog/vcloud/terremark/ecloud/models/ips.rb
fog-0.2.7 lib/fog/vcloud/terremark/ecloud/models/ips.rb
fog-0.2.6 lib/fog/vcloud/terremark/ecloud/models/ips.rb
fog-0.2.5 lib/fog/vcloud/terremark/ecloud/models/ips.rb
fog-0.2.4 lib/fog/vcloud/terremark/ecloud/models/ips.rb
fog-0.2.3 lib/fog/vcloud/terremark/ecloud/models/ips.rb
fog-0.2.2 lib/fog/vcloud/terremark/ecloud/models/ips.rb
fog-0.2.1 lib/fog/vcloud/terremark/ecloud/models/ips.rb