Exception: NbApiClient::Request::OAuthError
- Inherits:
-
StandardError
- Object
- StandardError
- NbApiClient::Request::OAuthError
- Defined in:
- lib/nb_api_client/request.rb
Overview
Replaces OAuth2::Error: this gem never talks OAuth2::Client/AccessToken, it only wraps an HTTParty response body as an error message.
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response) ⇒ OAuthError
constructor
A new instance of OAuthError.
Constructor Details
#initialize(response) ⇒ OAuthError
Returns a new instance of OAuthError.
38 39 40 41 |
# File 'lib/nb_api_client/request.rb', line 38 def initialize(response) @response = response super(response.body) end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
36 37 38 |
# File 'lib/nb_api_client/request.rb', line 36 def response @response end |