Sha256: e1766a6db0bd2facb2b88c49e8eeeb23486f283ba62566132614a53c40e7165e

Contents?: true

Size: 563 Bytes

Versions: 32

Compression:

Stored size: 563 Bytes

Contents

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

        model Fog::Compute::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

Version data entries

32 entries across 32 versions & 8 rubygems

Version Path
brightbox-cli-0.15.0 lib/brightbox-cli/vendor/fog/lib/fog/ecloud/models/compute/catalog.rb
tag-fog-1.0.1 lib/fog/ecloud/models/compute/catalog.rb
brightbox-cli-0.14.1 lib/brightbox-cli/vendor/fog/lib/fog/ecloud/models/compute/catalog.rb
brightbox-cli-0.14.0 lib/brightbox-cli/vendor/fog/lib/fog/ecloud/models/compute/catalog.rb
fog-1.0.0 lib/fog/ecloud/models/compute/catalog.rb
brightbox-cli-0.13.1 lib/brightbox-cli/vendor/fog/lib/fog/compute/models/ecloud/catalog.rb
brightbox-cli-0.13.0 lib/brightbox-cli/vendor/fog/lib/fog/compute/models/ecloud/catalog.rb
fog-0.11.0 lib/fog/compute/models/ecloud/catalog.rb
fog-0.10.0 lib/fog/compute/models/ecloud/catalog.rb
fog4encbs-0.9.0.1 lib/fog/compute/models/ecloud/catalog.rb
fog4encbs-0.9.0 lib/fog/compute/models/ecloud/catalog.rb
fog-0.9.0 lib/fog/compute/models/ecloud/catalog.rb