module LearnWeb::Client::User

Public Instance Methods

me() click to toggle source
# File lib/learn_web/client/user.rb, line 10
def me
  response = get(
    me_endpoint,
    headers: { 'Authorization' => "Bearer #{token}" }
  )

  LearnWeb::Client::User::Me.new(response, silent_output: silent_output)
end
me_endpoint() click to toggle source
# File lib/learn_web/client/user.rb, line 6
def me_endpoint
  "#{API_ROOT}/users/me"
end