Class: Moonshot::Tools::ASGRollout::ASGInstance
- Inherits:
-
Object
- Object
- Moonshot::Tools::ASGRollout::ASGInstance
- Defined in:
- lib/moonshot/tools/asg_rollout/asg_instance.rb
Overview
Provides an abstraction around an Auto Scaling Group’s relationship with an instance.
Instance Attribute Summary collapse
-
#asg_name ⇒ Object
readonly
Returns the value of attribute asg_name.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Instance Method Summary collapse
-
#initialize(asg_name, id, _config) ⇒ ASGInstance
constructor
A new instance of ASGInstance.
Constructor Details
#initialize(asg_name, id, _config) ⇒ ASGInstance
Returns a new instance of ASGInstance.
11 12 13 14 |
# File 'lib/moonshot/tools/asg_rollout/asg_instance.rb', line 11 def initialize(asg_name, id, _config) @asg_name = asg_name @instance_id = id end |
Instance Attribute Details
#asg_name ⇒ Object (readonly)
Returns the value of attribute asg_name.
9 10 11 |
# File 'lib/moonshot/tools/asg_rollout/asg_instance.rb', line 9 def asg_name @asg_name end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
9 10 11 |
# File 'lib/moonshot/tools/asg_rollout/asg_instance.rb', line 9 def id @id end |