Class: Tchae::ResultWrapper
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#result ⇒ Object
readonly
Returns the value of attribute result.
Instance Method Summary collapse
-
#initialize(res, err = nil) ⇒ ResultWrapper
constructor
A new instance of ResultWrapper.
Constructor Details
#initialize(res, err = nil) ⇒ ResultWrapper
Returns a new instance of ResultWrapper.
155 156 157 158 |
# File 'lib/tchae/core.rb', line 155 def initialize(res, err = nil) @result = res @error = err end |
Instance Attribute Details
#error ⇒ Object (readonly)
Returns the value of attribute error.
154 155 156 |
# File 'lib/tchae/core.rb', line 154 def error @error end |
#result ⇒ Object (readonly)
Returns the value of attribute result.
153 154 155 |
# File 'lib/tchae/core.rb', line 153 def result @result end |