Class: Fog::Network::StormOnDemand::Pools

Inherits:
Collection
  • Object
show all
Defined in:
lib/fog/network/storm_on_demand/models/pools.rb

Instance Method Summary collapse

Instance Method Details

#create(options) ⇒ Object



7
8
9
10
# File 'lib/fog/network/storm_on_demand/models/pools.rb', line 7

def create(options)
  p = service.create_pool(options).body
  new(p)
end

#get(uniq_id) ⇒ Object



12
13
14
15
# File 'lib/fog/network/storm_on_demand/models/pools.rb', line 12

def get(uniq_id)
  p = service.get_pool(:uniq_id => uniq_id).body
  new(p)
end

#get_assignments(options = {}) ⇒ Object



17
18
19
# File 'lib/fog/network/storm_on_demand/models/pools.rb', line 17

def get_assignments(options = {})
  service.get_assignments(options).body["items"]
end