Class: Ec2Meta::Api::Path
- Inherits:
- BasicObject
- Defined in:
- lib/ec2_meta/apis/path.rb
Direct Known Subclasses
Ec2Meta::Api20140225::MetaData::BlockDeviceMapping, Ec2Meta::Api20140225::MetaData::Iam, Ec2Meta::Api20140225::MetaData::Interfaces, Ec2Meta::Api20140225::MetaData::MacAddress, Ec2Meta::Api20140225::MetaData::MetaData, Ec2Meta::Api20140225::MetaData::Network, Ec2Meta::Api20140225::MetaData::Placement, Ec2Meta::Api20140225::MetaData::PublicKeys, Ec2Meta::Api20140225::MetaData::Services, Ec2Meta::Api20140225::MetaData::Spot
Instance Attribute Summary collapse
-
#prefix ⇒ Object
readonly
Returns the value of attribute prefix.
Instance Method Summary collapse
-
#initialize(fetcher, prefix = []) ⇒ Path
constructor
A new instance of Path.
Constructor Details
#initialize(fetcher, prefix = []) ⇒ Path
Returns a new instance of Path.
6 7 8 9 |
# File 'lib/ec2_meta/apis/path.rb', line 6 def initialize(fetcher, prefix = []) @_fetcher = fetcher @prefix = (prefix.is_a?(::String) ? [prefix] : prefix) end |
Instance Attribute Details
#prefix ⇒ Object (readonly)
Returns the value of attribute prefix.
4 5 6 |
# File 'lib/ec2_meta/apis/path.rb', line 4 def prefix @prefix end |