Exception: Redox::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Redox::Error
- Defined in:
- lib/redox.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#message ⇒ Object
Returns the value of attribute message.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(status: nil, body: nil, message: nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(status: nil, body: nil, message: nil) ⇒ Error
Returns a new instance of Error.
39 40 41 42 43 |
# File 'lib/redox.rb', line 39 def initialize(status: nil, body: nil, message: nil) self.status = status self.body = body self. = end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
36 37 38 |
# File 'lib/redox.rb', line 36 def body @body end |
#message ⇒ Object
Returns the value of attribute message.
37 38 39 |
# File 'lib/redox.rb', line 37 def @message end |
#status ⇒ Object
Returns the value of attribute status.
35 36 37 |
# File 'lib/redox.rb', line 35 def status @status end |