Exception: Fastbound::ApiError
- Defined in:
- lib/fastbound/error.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(status, body) ⇒ ApiError
constructor
A new instance of ApiError.
Constructor Details
#initialize(status, body) ⇒ ApiError
Returns a new instance of ApiError.
8 9 10 11 12 |
# File 'lib/fastbound/error.rb', line 8 def initialize(status, body) @status = status @errors = parse_errors(body) super() end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
6 7 8 |
# File 'lib/fastbound/error.rb', line 6 def errors @errors end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
6 7 8 |
# File 'lib/fastbound/error.rb', line 6 def status @status end |