Class: Ec2Metadata::Root
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(path = '/') ⇒ Root
constructor
A new instance of Root.
- #is_struct?(child_key) ⇒ Boolean
- #new_child(child_key) ⇒ Object
Methods inherited from Base
#child_keys, #children, #default_child, #from_hash, #get, #is_child_key?, #to_hash
Constructor Details
#initialize(path = '/') ⇒ Root
Returns a new instance of Root.
5 6 7 8 |
# File 'lib/ec2_metadata/root.rb', line 5 def initialize(path = '/') @path = path @default_child_key = 'latest' end |
Instance Method Details
#is_struct?(child_key) ⇒ Boolean
16 17 18 |
# File 'lib/ec2_metadata/root.rb', line 16 def is_struct?(child_key) true end |