Class: Fog::Compute::StormOnDemand::Configs

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

Instance Method Summary collapse

Instance Method Details

#all(options = {}) ⇒ Object



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

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

#get(config_id) ⇒ Object



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

def get(config_id)
  data = service.get_config_details(:id => config_id).body
  new(data)
end