Sha256: 6aca6abbe653f5d604598dcb307a9d70a7715b4e29148f1e6027c77c9504e985
Contents?: true
Size: 617 Bytes
Versions: 30
Compression:
Stored size: 617 Bytes
Contents
module Fog module Vcloud module Terremark module Ecloud class Catalog < Fog::Vcloud::Collection model Fog::Vcloud::Terremark::Ecloud::CatalogItem attribute :href, :aliases => :Href def all 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
30 entries across 30 versions & 2 rubygems