Exception: QboApi::Error
- Inherits:
-
StandardError
- Object
- StandardError
- QboApi::Error
- Defined in:
- lib/qbo_api/error.rb
Direct Known Subclasses
BadRequest, Forbidden, InternalServerError, NotFound, NotImplementedError, ServiceUnavailable, TooManyRequests, Unauthorized
Instance Attribute Summary collapse
-
#fault ⇒ Object
readonly
Returns the value of attribute fault.
Instance Method Summary collapse
-
#initialize(errors = nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(errors = nil) ⇒ Error
Returns a new instance of Error.
14 15 16 17 18 19 |
# File 'lib/qbo_api/error.rb', line 14 def initialize(errors = nil) if errors @fault = errors super(errors[:error_body]) end end |
Instance Attribute Details
#fault ⇒ Object (readonly)
Returns the value of attribute fault.
13 14 15 |
# File 'lib/qbo_api/error.rb', line 13 def fault @fault end |