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.
159 160 161 162 |
# File 'lib/ec2_meta/apis/2014_02_25/meta_data.rb', line 159 def initialize(fetcher, prefix, no) super(fetcher, prefix) @key_no = no end |
Instance Method Details
#openssh_key ⇒ Object
164 165 166 |
# File 'lib/ec2_meta/apis/2014_02_25/meta_data.rb', line 164 def openssh_key fetch('openssh-key') end |