Class: AWS::Instance
- Inherits:
-
Object
- Object
- AWS::Instance
- Defined in:
- lib/aws_metadata/instance_metadata.rb
Instance Attribute Summary collapse
-
#dynamic ⇒ Object
Returns the value of attribute dynamic.
-
#metadata ⇒ Object
Returns the value of attribute metadata.
-
#user_data ⇒ Object
Returns the value of attribute user_data.
Instance Method Summary collapse
-
#to_hash ⇒ Object
All the metadata from 169.254.169.254.
Instance Attribute Details
#dynamic ⇒ Object
Returns the value of attribute dynamic.
53 54 55 |
# File 'lib/aws_metadata/instance_metadata.rb', line 53 def dynamic @dynamic end |
#metadata ⇒ Object
Returns the value of attribute metadata.
53 54 55 |
# File 'lib/aws_metadata/instance_metadata.rb', line 53 def end |
#user_data ⇒ Object
Returns the value of attribute user_data.
53 54 55 |
# File 'lib/aws_metadata/instance_metadata.rb', line 53 def user_data @user_data end |
Instance Method Details
#to_hash ⇒ Object
All the metadata from 169.254.169.254
The hashes are Hashish objects that allows regular method like calls where all method names are the keys underscored.
103 104 105 |
# File 'lib/aws_metadata/instance_metadata.rb', line 103 def to_hash { :metadata => , :user_data => @user_data, :dynamic => @dynamic } end |