Class: Levelup::Endpoints::AppUsers

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

Overview

The endpoint holding all functions related to managing users under the current app.

Instance Method Summary collapse

Constructor Details

#initialize(app_access_token) ⇒ AppUsers

Returns a new instance of AppUsers


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

def initialize(app_access_token)
  @app_access_token = app_access_token
end

Instance Method Details

#create(create_user_request) ⇒ Object


9
10
11
12
13
# File 'lib/levelup/endpoints/app_users.rb', line 9

def create(create_user_request)
  request = build_request(create_user_request, Requests::CreateUser)
  request.app_access_token ||= app_access_token
  request.send_to_api(:post, endpoint_path)
end