Class: Levelup::Endpoints::Users

Inherits:
Base
  • Object
show all
Defined in:
lib/levelup/endpoints/users.rb

Overview

The endpoint serving as a bucket for all user-related functions.

Instance Method Summary collapse

Instance Method Details

#get(user_access_token) ⇒ Object


5
6
7
8
# File 'lib/levelup/endpoints/users.rb', line 5

def get(user_access_token)
  Requests::GetUser.new(user_access_token: user_access_token).
    send_to_api(:get, endpoint_path)
end

#ordersObject


10
11
12
# File 'lib/levelup/endpoints/users.rb', line 10

def orders
  UserOrders.new
end