class Fog::AWS::IAM::SshPublicKeys
Public Class Methods
new(attributes = {})
click to toggle source
Calls superclass method
# File lib/fog/aws/models/iam/ssh_public_keys.rb, line 9 def initialize(attributes = {}) @username = attributes[:username] super end
Public Instance Methods
all()
click to toggle source
# File lib/fog/aws/models/iam/ssh_public_keys.rb, line 14 def all data = service.list_ssh_public_keys('UserName'=> @username).body['SSHPublicKeys'] load(data) end
get(identity)
click to toggle source
# File lib/fog/aws/models/iam/ssh_public_keys.rb, line 19 def get(identity) self.all.select {|ssh_public_key| ssh_public_key.id == identity}.first end
new(attributes = {})
click to toggle source
Calls superclass method
# File lib/fog/aws/models/iam/ssh_public_keys.rb, line 23 def new(attributes = {}) super({username: @username }.merge!(attributes)) end