Class: Levelup::Endpoints::Apps

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

Overview

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

Instance Method Summary collapse

Constructor Details

#initialize(app_access_token) ⇒ Apps



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

def initialize(app_access_token)
  @app_access_token = app_access_token
end

Instance Method Details

#permissions_requests(request_id = nil) ⇒ Object



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

def permissions_requests(request_id = nil)
  if request_id
    SpecificPermissionsRequest.new(request_id, app_access_token)
  else
    PermissionsRequests.new(app_access_token)
  end
end

#usersObject



17
18
19
# File 'lib/levelup/endpoints/apps.rb', line 17

def users
  AppUsers.new(app_access_token)
end