Class: Fog::VcloudDirector::Compute::Catalogs
- Inherits:
-
Collection
- Object
- Collection
- Collection
- Fog::VcloudDirector::Compute::Catalogs
- Defined in:
- lib/fog/vcloud_director/models/compute/catalogs.rb
Instance Method Summary collapse
Methods inherited from Collection
#_item_list, #all, #get, #get_by_name, #get_everyone, #index, #with_item_list
Instance Method Details
#get_single_catalog_item(item_id) ⇒ Object
12 13 14 15 16 17 |
# File 'lib/fog/vcloud_director/models/compute/catalogs.rb', line 12 def get_single_catalog_item(item_id) item = service.get_catalog_item(item_id).body return nil unless item item[:vapp_template_id] = item[:Entity][:href].split('/').last Fog::VcloudDirector::Compute::CatalogItem.new(item.merge({ :service => service, :collection => [] })) end |