Class: Fog::Compute::StormOnDemand::Balancer
- Defined in:
- lib/rackspace-fog/storm_on_demand/models/compute/balancer.rb
Instance Attribute Summary
Attributes inherited from Model
Instance Method Summary collapse
- #add_node(options) ⇒ Object
-
#initialize(attributes = {}) ⇒ Balancer
constructor
A new instance of Balancer.
- #remove_node(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 Attributes::InstanceMethods
#_dump, #attributes, #dup, #identity, #identity=, #merge_attributes, #new_record?, #requires, #requires_one
Constructor Details
#initialize(attributes = {}) ⇒ Balancer
Returns a new instance of Balancer.
20 21 22 |
# File 'lib/rackspace-fog/storm_on_demand/models/compute/balancer.rb', line 20 def initialize(attributes={}) super end |
Instance Method Details
#add_node(options) ⇒ Object
24 25 26 27 |
# File 'lib/rackspace-fog/storm_on_demand/models/compute/balancer.rb', line 24 def add_node() requires :identity connection.add_balancer_node({:uniq_id => identity}.merge!()) end |
#remove_node(options) ⇒ Object
29 30 31 32 |
# File 'lib/rackspace-fog/storm_on_demand/models/compute/balancer.rb', line 29 def remove_node() requires :identity connection.remove_balancer_node({:uniq_id => identity}.merge!()) end |