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

#allObject



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

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

#get(template_id) ⇒ Object



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

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