Class: Fog::Network::StormOnDemand::Pool
- Defined in:
- lib/fog/storm_on_demand/models/network/pool.rb
Instance Attribute Summary
Attributes inherited from Model
Instance Method Summary collapse
- #destroy ⇒ Object
-
#initialize(attributes = {}) ⇒ Pool
constructor
A new instance of Pool.
- #update(options = {}) ⇒ Object
Methods inherited from Model
#inspect, #reload, #symbolize_keys, #to_json, #wait_for
Methods included from Attributes::ClassMethods
#_load, #aliases, #attribute, #attributes, #identity, #ignore_attributes, #ignored_attributes
Methods included from Core::DeprecatedConnectionAccessors
#connection, #connection=, #prepare_service_value
Methods included from Attributes::InstanceMethods
#_dump, #attributes, #dup, #identity, #identity=, #merge_attributes, #new_record?, #persisted?, #requires, #requires_one
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
#destroy ⇒ Object
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(={}) requires :identity service.update_pool({:uniq_id => identity}.merge!()) end |