Sha256: 1f7d1533bad0f2a2039b57de97cdd7c4c6cac1c7ef2d7d6cc1cd71e6129226b4

Contents?: true

Size: 735 Bytes

Versions: 29

Compression:

Stored size: 735 Bytes

Contents

require 'fog/vcloud/terremark/ecloud/models/node'

module Fog
  class Vcloud
    module Terremark
      class Ecloud

        class Nodes < Fog::Vcloud::Collection

          model Fog::Vcloud::Terremark::Ecloud::Node

          attribute :href, :aliases => :Href

          def all
            check_href!( :messages => "the Nodes href of the Internet Service you want to enumerate" )
            if data = connection.get_nodes(href).body[:NodeService]
              load(data)
            end
          end

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

        end
      end
    end
  end
end

Version data entries

29 entries across 29 versions & 3 rubygems

Version Path
fog-0.5.3 lib/fog/vcloud/terremark/ecloud/models/nodes.rb
fog-0.5.2 lib/fog/vcloud/terremark/ecloud/models/nodes.rb
fog-0.5.1 lib/fog/vcloud/terremark/ecloud/models/nodes.rb
fog-0.5.0 lib/fog/vcloud/terremark/ecloud/models/nodes.rb
phpfog-fog-0.4.1.3 lib/fog/vcloud/terremark/ecloud/models/nodes.rb
phpfog-fog-0.4.1.2 lib/fog/vcloud/terremark/ecloud/models/nodes.rb
phpfog-fog-0.4.1.1 lib/fog/vcloud/terremark/ecloud/models/nodes.rb
phpfog-fog-0.4.1 lib/fog/vcloud/terremark/ecloud/models/nodes.rb
fog-0.4.1 lib/fog/vcloud/terremark/ecloud/models/nodes.rb
fog-0.4.0 lib/fog/vcloud/terremark/ecloud/models/nodes.rb
fog-0.3.34 lib/fog/vcloud/terremark/ecloud/models/nodes.rb
fog-0.3.33 lib/fog/vcloud/terremark/ecloud/models/nodes.rb
fog-0.3.32 lib/fog/vcloud/terremark/ecloud/models/nodes.rb
fog-0.3.31 lib/fog/vcloud/terremark/ecloud/models/nodes.rb
fog-0.3.30 lib/fog/vcloud/terremark/ecloud/models/nodes.rb
fog-0.3.29 lib/fog/vcloud/terremark/ecloud/models/nodes.rb
fog-0.3.28 lib/fog/vcloud/terremark/ecloud/models/nodes.rb
fog-0.3.27 lib/fog/vcloud/terremark/ecloud/models/nodes.rb
fog-0.3.26 lib/fog/vcloud/terremark/ecloud/models/nodes.rb
fog-0.3.25 lib/fog/vcloud/terremark/ecloud/models/nodes.rb