Class: Swa::EC2::KeyPair
Instance Attribute Summary
Attributes inherited from Resource
#aws_resource
Instance Method Summary
collapse
Methods inherited from Resource
#data, delegate, #initialize, list
Constructor Details
This class inherits a constructor from Swa::Resource
Instance Method Details
#id ⇒ Object
8
9
10
|
# File 'lib/swa/ec2/key_pair.rb', line 8
def id
name
end
|
#name ⇒ Object
19
20
21
|
# File 'lib/swa/ec2/key_pair.rb', line 19
def name
aws_resource.name
end
|
#summary ⇒ Object
12
13
14
15
16
17
|
# File 'lib/swa/ec2/key_pair.rb', line 12
def summary
[
pad(name, 44),
aws_resource.key_fingerprint
].join(" ")
end
|