Class: Swa::EC2::KeyPair

Inherits:
Resource show all
Defined in:
lib/swa/ec2/key_pair.rb

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

#idObject



8
9
10
# File 'lib/swa/ec2/key_pair.rb', line 8

def id
  name
end

#nameObject



19
20
21
# File 'lib/swa/ec2/key_pair.rb', line 19

def name
  aws_resource.name
end

#summaryObject



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