Class: Levelup::Endpoints::SpecificPermissionsRequest

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

Overview

The endpoint holding all functions related to accessing a specified permissions request.

Instance Method Summary collapse

Constructor Details

#initialize(request_id, app_access_token) ⇒ SpecificPermissionsRequest

Returns a new instance of SpecificPermissionsRequest


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

def initialize(request_id, app_access_token)
  self.app_access_token = app_access_token
  self.request_id = request_id
end

Instance Method Details

#show(app_token = nil) ⇒ Object


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

def show(app_token = nil)
  Requests::ShowPermissionsRequest.new(app_access_token: app_access_token || app_token).
    send_to_api(:get, endpoint_path)
end