Class: PayuAPI::AuthResponse
Constant Summary
Constants inherited
from Response
Response::SUCCESS_HTTP_STATUSES, Response::SUCCESS_STATUSES
Instance Method Summary
collapse
Methods inherited from Response
#error?, #error_code, #error_message
Instance Method Details
#auth_token ⇒ Object
7
8
9
|
# File 'lib/payu_api/responses/auth_response.rb', line 7
def auth_token
body[:access_token]
end
|
#expires_in ⇒ Object
11
12
13
|
# File 'lib/payu_api/responses/auth_response.rb', line 11
def expires_in
body[:expires_in]
end
|
#success? ⇒ Boolean
3
4
5
|
# File 'lib/payu_api/responses/auth_response.rb', line 3
def success?
http_success?
end
|