Class: Fog::Terremark::Shared::Images
- Inherits:
-
Collection
- Object
- Collection
- Fog::Terremark::Shared::Images
- Defined in:
- lib/fog/terremark/models/shared/images.rb
Instance Method Summary collapse
Instance Method Details
#all ⇒ Object
22 23 24 25 26 27 |
# File 'lib/fog/terremark/models/shared/images.rb', line 22 def all data = service.get_catalog(vdc_id).body['CatalogItems'].select do |entity| entity['type'] == "application/vnd.vmware.vcloud.catalogItem+xml" end load(data) end |
#vdc_id ⇒ Object
29 30 31 |
# File 'lib/fog/terremark/models/shared/images.rb', line 29 def vdc_id @vdc_id ||= service.default_vdc_id end |