Class: YxSdk::ResultHandler
- Inherits:
-
Object
- Object
- YxSdk::ResultHandler
- Defined in:
- lib/yx_sdk/handler/result_handler.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#result ⇒ Object
Returns the value of attribute result.
Instance Method Summary collapse
-
#initialize(code, result = {}) ⇒ ResultHandler
constructor
A new instance of ResultHandler.
Constructor Details
#initialize(code, result = {}) ⇒ ResultHandler
Returns a new instance of ResultHandler.
5 6 7 8 |
# File 'lib/yx_sdk/handler/result_handler.rb', line 5 def initialize(code, result = {}) @code = code || DEFAULT_CODE @result = package_result(result) end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
3 4 5 |
# File 'lib/yx_sdk/handler/result_handler.rb', line 3 def code @code end |
#result ⇒ Object
Returns the value of attribute result.
3 4 5 |
# File 'lib/yx_sdk/handler/result_handler.rb', line 3 def result @result end |