Class: PayuAPI::AuthResponse

Inherits:
Response show all
Defined in:
lib/payu_api/responses/auth_response.rb

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_tokenObject



7
8
9
# File 'lib/payu_api/responses/auth_response.rb', line 7

def auth_token
  body[:access_token]
end

#expires_inObject



11
12
13
# File 'lib/payu_api/responses/auth_response.rb', line 11

def expires_in
  body[:expires_in]
end

#success?Boolean

Returns:

  • (Boolean)


3
4
5
# File 'lib/payu_api/responses/auth_response.rb', line 3

def success?
  http_success?
end