Exception: AvataxClient::Errors::ApiError
- Inherits:
-
StandardError
- Object
- StandardError
- AvataxClient::Errors::ApiError
- Defined in:
- lib/avatax_client/errors.rb
Overview
Encapsulates error responses from Avatax api calls.
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
- #initialize(response = { "error" => {} }) ⇒ void constructor
Constructor Details
#initialize(response = { "error" => {} }) ⇒ void
10 11 12 13 |
# File 'lib/avatax_client/errors.rb', line 10 def initialize(response = { "error" => {} }) @response = OpenStruct.new(response["error"]) super end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
7 8 9 |
# File 'lib/avatax_client/errors.rb', line 7 def response @response end |