Class: Fog::Compute::StormOnDemand::Images

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

Instance Method Summary collapse

Instance Method Details

#all(options = {}) ⇒ Object



20
21
22
23
# File 'lib/fog/storm_on_demand/models/compute/images.rb', line 20

def all(options={})
  data = service.list_images(options).body['items']
  load(data)
end

#create(options = {}) ⇒ Object



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

def create(options={})
  service.create_image(options)
  true
end

#get(image_id) ⇒ Object



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

def get(image_id)
  img = service.get_image_details(:id => image_id).body
  new(img)
end