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



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_idObject



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

def vdc_id
  @vdc_id ||= service.default_vdc_id
end