Sha256: 9f9730d7cb29eed8f41b969af22a901b08ad68942a7c66a354ad61fe14a35a48
Contents?: true
Size: 492 Bytes
Versions: 40
Compression:
Stored size: 492 Bytes
Contents
module Opsicle class UserProfile attr_reader :client def initialize(client) @client = client end def ssh_username attributes.fetch(:ssh_username) end def iam_username attributes.fetch(:name) end def public_key attributes.fetch(:ssh_public_key) end def arn attributes.fetch(:iam_user_arn) end def attributes @attributes ||= client.api_call(:describe_my_user_profile)[:user_profile] end end end
Version data entries
40 entries across 40 versions & 1 rubygems