Class: Fog::Compute::Bluebox::Images

Inherits:
Fog::Collection
  • Object
show all
Defined in:
lib/fog/bluebox/models/compute/images.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) all



12
13
14
15
# File 'lib/fog/bluebox/models/compute/images.rb', line 12

def all
  data = service.get_templates.body
  load(data)
end

- (Object) get(template_id)



17
18
19
20
21
22
# File 'lib/fog/bluebox/models/compute/images.rb', line 17

def get(template_id)
  response = service.get_template(template_id)
  new(response.body)
rescue Fog::Compute::Bluebox::NotFound
  nil
end