Sha256: 1cb45af8fe529cb3776f327e59bd2a1571f506db50081bedbf9942092c184a47
Contents?: true
Size: 407 Bytes
Versions: 6
Compression:
Stored size: 407 Bytes
Contents
require 'learn_web/client/user/me' module LearnWeb class Client module User def me_endpoint "#{API_ROOT}/users/me" end def me response = @conn.get do |req| req.url me_endpoint req.headers['Authorization'] = "Bearer #{token}" end LearnWeb::Client::User::Me.new(response, silent_output: silent_output) end end end end
Version data entries
6 entries across 6 versions & 1 rubygems