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