Module: BambooId::Requests::BaseAccessTokenRequest

Included in:
AccessTokenRequest
Defined in:
lib/bamboo_id/requests/base_access_token_request.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



6
7
8
# File 'lib/bamboo_id/requests/base_access_token_request.rb', line 6

def self.included(base)
  base.send(:include, BasicRequestHandling)
end

Instance Method Details

#access_tokenObject



10
11
12
# File 'lib/bamboo_id/requests/base_access_token_request.rb', line 10

def access_token
  response.access_token
end

#errorObject



22
23
24
# File 'lib/bamboo_id/requests/base_access_token_request.rb', line 22

def error
  response.error
end

#refresh_tokenObject



14
15
16
# File 'lib/bamboo_id/requests/base_access_token_request.rb', line 14

def refresh_token
  response.refresh_token
end

#successful?Boolean

Returns:

  • (Boolean)


18
19
20
# File 'lib/bamboo_id/requests/base_access_token_request.rb', line 18

def successful?
  error.nil?
end