Class: LeoManager::Result
- Inherits:
-
Object
- Object
- LeoManager::Result
- Defined in:
- lib/leo_manager_models.rb
Overview
Common Result
Instance Attribute Summary collapse
-
#result ⇒ Object
readonly
Returns the value of attribute result.
Instance Method Summary collapse
-
#initialize(h) ⇒ Result
constructor
A new instance of Result.
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
#result ⇒ Object (readonly)
Returns the value of attribute result.
28 29 30 |
# File 'lib/leo_manager_models.rb', line 28 def result @result end |