Exception: NbApiClient::Request::OAuthError

Inherits:
StandardError
  • Object
show all
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

Instance Method Summary collapse

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

#responseObject (readonly)

Returns the value of attribute response.



36
37
38
# File 'lib/nb_api_client/request.rb', line 36

def response
  @response
end