Class: Fog::Compute::StormOnDemand::Balancer

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

Instance Attribute Summary

Attributes inherited from Model

#collection, #connection

Instance Method Summary collapse

Methods inherited from Model

#inspect, #reload, #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/fog/compute/models/storm_on_demand/balancer.rb', line 20

def initialize(attributes={})
  super
end

Instance Method Details

#add_node(options) ⇒ Object



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

def add_node(options)
  requires :identity
  connection.add_balancer_node({:uniq_id => identity}.merge!(options))
end

#remove_node(options) ⇒ Object



29
30
31
32
# File 'lib/fog/compute/models/storm_on_demand/balancer.rb', line 29

def remove_node(options)
  requires :identity
  connection.remove_balancer_node({:uniq_id => identity}.merge!(options))
end