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.



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

def initialize(attributes={})
  super
end

Instance Method Details

#destroyObject



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

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

#update(options = {}) ⇒ Object



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

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