Class: Marty::Diagnostic::Aws::Ec2Instance
- Inherits:
-
Aws::Request
- Object
- Aws::Request
- Marty::Diagnostic::Aws::Ec2Instance
- Defined in:
- lib/marty/diagnostic/aws/ec2_instance.rb
Defined Under Namespace
Classes: InstancesSet
Instance Attribute Summary collapse
-
#instances ⇒ Object
readonly
Returns the value of attribute instances.
-
#nodes ⇒ Object
readonly
Returns the value of attribute nodes.
-
#tag ⇒ Object
readonly
Returns the value of attribute tag.
Instance Method Summary collapse
-
#initialize ⇒ Ec2Instance
constructor
A new instance of Ec2Instance.
Constructor Details
#initialize ⇒ Ec2Instance
Returns a new instance of Ec2Instance.
26 27 28 29 30 31 32 |
# File 'lib/marty/diagnostic/aws/ec2_instance.rb', line 26 def initialize super @service = 'ec2' @tag = get_tag @instances = InstancesSet.new(get_instances) @nodes = get_private_ips end |
Instance Attribute Details
#instances ⇒ Object (readonly)
Returns the value of attribute instances.
2 3 4 |
# File 'lib/marty/diagnostic/aws/ec2_instance.rb', line 2 def instances @instances end |
#nodes ⇒ Object (readonly)
Returns the value of attribute nodes.
2 3 4 |
# File 'lib/marty/diagnostic/aws/ec2_instance.rb', line 2 def nodes @nodes end |
#tag ⇒ Object (readonly)
Returns the value of attribute tag.
2 3 4 |
# File 'lib/marty/diagnostic/aws/ec2_instance.rb', line 2 def tag @tag end |