Sha256: 714335c9932fda84dd39db16ee9f3de8a3f39ba0b638fab173e1935acfe9b638

Contents?: true

Size: 385 Bytes

Versions: 12

Compression:

Stored size: 385 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 = get(
          me_endpoint,
          headers: { 'Authorization' => "Bearer #{token}" }
        )

        LearnWeb::Client::User::Me.new(response, silent_output: silent_output)
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
learn-web-1.5.5 lib/learn_web/client/user.rb
learn-web-1.5.4 lib/learn_web/client/user.rb
learn-web-1.5.3 lib/learn_web/client/user.rb
learn-web-1.5.2 lib/learn_web/client/user.rb
learn-web-1.5.1 lib/learn_web/client/user.rb
learn-web-1.5.0 lib/learn_web/client/user.rb
learn-web-1.4.2 lib/learn_web/client/user.rb
learn-web-1.4.1 lib/learn_web/client/user.rb
learn-web-1.4.0 lib/learn_web/client/user.rb
learn-web-1.3.0 lib/learn_web/client/user.rb
learn-web-1.2.0 lib/learn_web/client/user.rb
learn-web-1.1.0 lib/learn_web/client/user.rb