Class: Fog::Terremark::Shared::Images

Inherits:
Collection
  • Object
show all
Defined in:
lib/fog/terremark/models/shared/images.rb

Instance Method Summary collapse

Instance Method Details

#allObject



26
27
28
29
30
31
# File 'lib/fog/terremark/models/shared/images.rb', line 26

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_idObject



34
35
36
# File 'lib/fog/terremark/models/shared/images.rb', line 34

def vdc_id
  @vdc_id ||= service.default_vdc_id
end