Exception: Resent::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Resent::Error
- Defined in:
- lib/resent/client.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(message, status: nil, body: nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message, status: nil, body: nil) ⇒ Error
Returns a new instance of Error.
11 12 13 14 15 |
# File 'lib/resent/client.rb', line 11 def initialize(, status: nil, body: nil) super() @status = status @body = body end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
9 10 11 |
# File 'lib/resent/client.rb', line 9 def body @body end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
9 10 11 |
# File 'lib/resent/client.rb', line 9 def status @status end |