Class: Tchae::ResultWrapper

Inherits:
Object show all
Defined in:
lib/tchae/core.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#errorObject (readonly)

Returns the value of attribute error.



154
155
156
# File 'lib/tchae/core.rb', line 154

def error
  @error
end

#resultObject (readonly)

Returns the value of attribute result.



153
154
155
# File 'lib/tchae/core.rb', line 153

def result
  @result
end