Class: LeoManager::Result

Inherits:
Object
  • Object
show all
Defined in:
lib/leo_manager_models.rb

Overview

Common Result

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(h) ⇒ Result

Returns a new instance of Result.



30
31
32
33
34
35
36
37
# File 'lib/leo_manager_models.rb', line 30

def initialize(h)
  error = h[:error]
  if error == nil
    @result = h[:result]
  else
    @result = error
  end
end

Instance Attribute Details

#resultObject (readonly)

Returns the value of attribute result.



28
29
30
# File 'lib/leo_manager_models.rb', line 28

def result
  @result
end