Class: Ec2Meta::Api20140225::MetaData::PublicKeys
- Inherits:
-
Ec2Meta::Api::Path
- Object
- Ec2Meta::Api::Path
- Ec2Meta::Api20140225::MetaData::PublicKeys
- Defined in:
- lib/ec2_meta/apis/2014_02_25/meta_data.rb
Instance Attribute Summary
Attributes inherited from Ec2Meta::Api::Path
Instance Method Summary collapse
-
#initialize(fetcher, prefix, no) ⇒ PublicKeys
constructor
A new instance of PublicKeys.
- #openssh_key ⇒ Object
Constructor Details
#initialize(fetcher, prefix, no) ⇒ PublicKeys
Returns a new instance of PublicKeys.
161 162 163 164 |
# File 'lib/ec2_meta/apis/2014_02_25/meta_data.rb', line 161 def initialize(fetcher, prefix, no) super(fetcher, prefix) @key_no = no end |
Instance Method Details
#openssh_key ⇒ Object
166 167 168 |
# File 'lib/ec2_meta/apis/2014_02_25/meta_data.rb', line 166 def openssh_key fetch('openssh-key') end |