class Opsicle::UserProfile

Attributes

client[R]

Public Class Methods

new(client) click to toggle source
# File lib/opsicle/user_profile.rb, line 5
def initialize(client)
  @client = client
end

Public Instance Methods

arn() click to toggle source
# File lib/opsicle/user_profile.rb, line 21
def arn
  attributes.fetch(:iam_user_arn)
end
attributes() click to toggle source
# File lib/opsicle/user_profile.rb, line 25
def attributes
  @attributes ||= client.api_call(:describe_my_user_profile)[:user_profile]
end
iam_username() click to toggle source
# File lib/opsicle/user_profile.rb, line 13
def iam_username
  attributes.fetch(:name)
end
public_key() click to toggle source
# File lib/opsicle/user_profile.rb, line 17
def public_key
  attributes.fetch(:ssh_public_key)
end
ssh_username() click to toggle source
# File lib/opsicle/user_profile.rb, line 9
def ssh_username
  attributes.fetch(:ssh_username)
end