Class: Pdi::Spoon::Result
- Inherits:
-
Object
- Object
- Pdi::Spoon::Result
- Defined in:
- lib/pdi/spoon/result.rb
Overview
General return object for wrapping up a execution call result (execution) and a usable result (value)
Instance Attribute Summary collapse
-
#execution ⇒ Object
readonly
Returns the value of attribute execution.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(execution, value) ⇒ Result
constructor
A new instance of Result.
Constructor Details
#initialize(execution, value) ⇒ Result
Returns a new instance of Result.
17 18 19 20 21 22 |
# File 'lib/pdi/spoon/result.rb', line 17 def initialize(execution, value) @execution = execution @value = value freeze end |
Instance Attribute Details
#execution ⇒ Object (readonly)
Returns the value of attribute execution.
15 16 17 |
# File 'lib/pdi/spoon/result.rb', line 15 def execution @execution end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
15 16 17 |
# File 'lib/pdi/spoon/result.rb', line 15 def value @value end |