Sha256: 569a84c4ad2767a53524ec7564cb72366ac28b668f4f80547ab067bac0914017

Contents?: true

Size: 639 Bytes

Versions: 29

Compression:

Stored size: 639 Bytes

Contents

module Fog
  class Vcloud
    module Terremark
      class Ecloud

        class Catalog < Fog::Vcloud::Collection

          model Fog::Vcloud::Terremark::Ecloud::CatalogItem

          attribute :href, :aliases => :Href

          def all
            check_href!
            if data = connection.get_catalog(href).body[:CatalogItems][:CatalogItem]
              load(data)
            end
          end

          def get(uri)
            if data = connection.get_catalog_item(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/catalog.rb
fog-0.5.2 lib/fog/vcloud/terremark/ecloud/models/catalog.rb
fog-0.5.1 lib/fog/vcloud/terremark/ecloud/models/catalog.rb
fog-0.5.0 lib/fog/vcloud/terremark/ecloud/models/catalog.rb
phpfog-fog-0.4.1.3 lib/fog/vcloud/terremark/ecloud/models/catalog.rb
phpfog-fog-0.4.1.2 lib/fog/vcloud/terremark/ecloud/models/catalog.rb
phpfog-fog-0.4.1.1 lib/fog/vcloud/terremark/ecloud/models/catalog.rb
phpfog-fog-0.4.1 lib/fog/vcloud/terremark/ecloud/models/catalog.rb
fog-0.4.1 lib/fog/vcloud/terremark/ecloud/models/catalog.rb
fog-0.4.0 lib/fog/vcloud/terremark/ecloud/models/catalog.rb
fog-0.3.34 lib/fog/vcloud/terremark/ecloud/models/catalog.rb
fog-0.3.33 lib/fog/vcloud/terremark/ecloud/models/catalog.rb
fog-0.3.32 lib/fog/vcloud/terremark/ecloud/models/catalog.rb
fog-0.3.31 lib/fog/vcloud/terremark/ecloud/models/catalog.rb
fog-0.3.30 lib/fog/vcloud/terremark/ecloud/models/catalog.rb
fog-0.3.29 lib/fog/vcloud/terremark/ecloud/models/catalog.rb
fog-0.3.28 lib/fog/vcloud/terremark/ecloud/models/catalog.rb
fog-0.3.27 lib/fog/vcloud/terremark/ecloud/models/catalog.rb
fog-0.3.26 lib/fog/vcloud/terremark/ecloud/models/catalog.rb
fog-0.3.25 lib/fog/vcloud/terremark/ecloud/models/catalog.rb