Class: Talkbird::Result::Exception
- Inherits:
-
Object
- Object
- Talkbird::Result::Exception
- Defined in:
- lib/talkbird/result/exception.rb
Overview
Class representing a result as an exception.
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#exception ⇒ Object
readonly
Returns the value of attribute exception.
-
#result ⇒ Object
readonly
Returns the value of attribute result.
Instance Method Summary collapse
-
#initialize(exception, result) ⇒ Exception
constructor
A new instance of Exception.
Constructor Details
#initialize(exception, result) ⇒ Exception
Returns a new instance of Exception.
12 13 14 15 16 |
# File 'lib/talkbird/result/exception.rb', line 12 def initialize(exception, result) @result = result @exception = exception @body = { error: exception. } end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
8 9 10 |
# File 'lib/talkbird/result/exception.rb', line 8 def body @body end |
#exception ⇒ Object (readonly)
Returns the value of attribute exception.
10 11 12 |
# File 'lib/talkbird/result/exception.rb', line 10 def exception @exception end |
#result ⇒ Object (readonly)
Returns the value of attribute result.
9 10 11 |
# File 'lib/talkbird/result/exception.rb', line 9 def result @result end |