Class: Fog::Network::StormOnDemand::Pool

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

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ Pool

Returns a new instance of Pool.



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

def initialize(attributes={})
  super
end

Instance Method Details

#destroyObject



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

def destroy
  requires :identity
  service.delete_pool(:uniq_id => identity)
  true
end

#update(options = {}) ⇒ Object



23
24
25
26
# File 'lib/fog/storm_on_demand/models/network/pool.rb', line 23

def update(options={})
  requires :identity
  service.update_pool({:uniq_id => identity}.merge!(options))
end