class Fog::Compute::StormOnDemand::Images
Public Instance Methods
all(options = {})
click to toggle source
# File lib/fog/compute/storm_on_demand/models/images.rb, line 17 def all(options = {}) data = service.list_images(options).body["items"] load(data) end
create(options = {})
click to toggle source
# File lib/fog/compute/storm_on_demand/models/images.rb, line 7 def create(options = {}) service.create_image(options) true end
get(image_id)
click to toggle source
# File lib/fog/compute/storm_on_demand/models/images.rb, line 12 def get(image_id) img = service.get_image_details(:id => image_id).body new(img) end