Class: CloudProviders::HealthCheck

Inherits:
Ec2Helper show all
Defined in:
lib/cloud_providers/ec2/helpers/elastic_load_balancer.rb

Instance Attribute Summary

Attributes inherited from CloudProvider

#init_opts, #name

Instance Method Summary collapse

Methods inherited from Ec2Helper

#as, #ec2, #elb, #pool, property, #rds

Methods inherited from CloudProvider

#after_initialized, #bootstrap_nodes!, #default_keypair_path, default_keypair_path, #method_missing, #run

Constructor Details

#initialize(name, init_opts = {}, &block) ⇒ HealthCheck

Returns a new instance of HealthCheck.



170
171
172
173
# File 'lib/cloud_providers/ec2/helpers/elastic_load_balancer.rb', line 170

def initialize(name, init_opts={}, &block)
  set_vars_from_options(name)
  super
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class CloudProviders::CloudProvider

Instance Method Details

#to_hashObject



175
176
177
178
179
180
181
# File 'lib/cloud_providers/ec2/helpers/elastic_load_balancer.rb', line 175

def to_hash
  {   :target => target, 
      :interval => interval.to_s, 
      :timeout => timeout.to_s, 
      :unhealthy_threshold => unhealthy_threshold.to_s, 
      :healthy_threshold => healthy_threshold.to_s}
end