Class: YxSdk::ResultHandler

Inherits:
Object
  • Object
show all
Defined in:
lib/yx_sdk/handler/result_handler.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#codeObject

Returns the value of attribute code.



3
4
5
# File 'lib/yx_sdk/handler/result_handler.rb', line 3

def code
  @code
end

#resultObject

Returns the value of attribute result.



3
4
5
# File 'lib/yx_sdk/handler/result_handler.rb', line 3

def result
  @result
end