Class: CloudProviders::HealthCheck
- Inherits:
-
Ec2Helper
- Object
- CloudProvider
- Ec2Helper
- CloudProviders::HealthCheck
- Defined in:
- lib/cloud_providers/ec2/helpers/elastic_load_balancer.rb
Instance Attribute Summary
Attributes inherited from CloudProvider
Instance Method Summary collapse
-
#initialize(name, init_opts = {}, &block) ⇒ HealthCheck
constructor
A new instance of HealthCheck.
- #to_hash ⇒ Object
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) (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_hash ⇒ Object
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 |