Exception: BeeswaxAPI::Errors::FailureResponse
- Inherits:
-
BeeswaxAPIError
- Object
- StandardError
- BeeswaxAPIError
- BeeswaxAPI::Errors::FailureResponse
- Defined in:
- lib/beeswaxapi/errors/failure_response.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Instance Method Summary collapse
-
#initialize(errors: []) ⇒ FailureResponse
constructor
A new instance of FailureResponse.
- #to_s ⇒ Object
Constructor Details
#initialize(errors: []) ⇒ FailureResponse
Returns a new instance of FailureResponse.
6 7 8 |
# File 'lib/beeswaxapi/errors/failure_response.rb', line 6 def initialize(errors: []) @errors = errors end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
4 5 6 |
# File 'lib/beeswaxapi/errors/failure_response.rb', line 4 def errors @errors end |
Instance Method Details
#to_s ⇒ Object
10 11 12 |
# File 'lib/beeswaxapi/errors/failure_response.rb', line 10 def to_s errors.join(', ') end |