Exception: OptimisClient::ResponseError
- Inherits:
-
StandardError
- Object
- StandardError
- OptimisClient::ResponseError
- Defined in:
- lib/optimis_client/base.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
Returns the value of attribute errors.
-
#message ⇒ Object
Returns the value of attribute message.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(http_status, message = nil, errors = {}) ⇒ ResponseError
constructor
A new instance of ResponseError.
Constructor Details
#initialize(http_status, message = nil, errors = {}) ⇒ ResponseError
Returns a new instance of ResponseError.
6 7 8 |
# File 'lib/optimis_client/base.rb', line 6 def initialize(http_status, =nil, errors = {}) self.status, self., self.errors = http_status, , errors end |
Instance Attribute Details
#errors ⇒ Object
Returns the value of attribute errors.
4 5 6 |
# File 'lib/optimis_client/base.rb', line 4 def errors @errors end |
#message ⇒ Object
Returns the value of attribute message.
4 5 6 |
# File 'lib/optimis_client/base.rb', line 4 def @message end |
#status ⇒ Object
Returns the value of attribute status.
4 5 6 |
# File 'lib/optimis_client/base.rb', line 4 def status @status end |