Class: Fog::Compute::StormOnDemand::Images
- Inherits:
-
Fog::Collection
- Object
- Fog::Collection
- Fog::Compute::StormOnDemand::Images
- 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(={}) data = service.list_images().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(={}) service.create_image() 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 |