Class: Fog::Compute::StormOnDemand::Templates
- Inherits:
-
Fog::Collection
- Object
- Fog::Collection
- Fog::Compute::StormOnDemand::Templates
- Defined in:
- lib/fog/compute/storm_on_demand/models/templates.rb
Instance Method Summary collapse
Instance Method Details
#all(options = {}) ⇒ Object
7 8 9 10 |
# File 'lib/fog/compute/storm_on_demand/models/templates.rb', line 7 def all( = {}) data = service.list_templates().body["items"] load(data) end |
#get(template_id) ⇒ Object
12 13 14 15 |
# File 'lib/fog/compute/storm_on_demand/models/templates.rb', line 12 def get(template_id) tpl = service.get_template_details(:id => template_id).body new(tpl) end |