Class: ScaleInstance
- Inherits:
-
Object
- Object
- ScaleInstance
- Defined in:
- lib/aws/scale_instance.rb
Instance Attribute Summary collapse
-
#group ⇒ Object
readonly
Returns the value of attribute group.
Instance Method Summary collapse
- #exists? ⇒ Boolean
- #id ⇒ Object
-
#initialize(instance_id, group) ⇒ ScaleInstance
constructor
A new instance of ScaleInstance.
- #terminate ⇒ Object
Constructor Details
#initialize(instance_id, group) ⇒ ScaleInstance
Returns a new instance of ScaleInstance.
6 7 8 9 |
# File 'lib/aws/scale_instance.rb', line 6 def initialize instance_id, group @delegate = AWS::EC2::Instance.new instance_id; @group = group end |
Instance Attribute Details
#group ⇒ Object (readonly)
Returns the value of attribute group.
4 5 6 |
# File 'lib/aws/scale_instance.rb', line 4 def group @group end |
Instance Method Details
#exists? ⇒ Boolean
15 16 17 |
# File 'lib/aws/scale_instance.rb', line 15 def exists? @delegate.exists? end |
#id ⇒ Object
11 12 13 |
# File 'lib/aws/scale_instance.rb', line 11 def id @delegate.id end |
#terminate ⇒ Object
19 20 21 |
# File 'lib/aws/scale_instance.rb', line 19 def terminate @delegate.terminate end |