Class: Pdi::Spoon::Result

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#executionObject (readonly)

Returns the value of attribute execution.



15
16
17
# File 'lib/pdi/spoon/result.rb', line 15

def execution
  @execution
end

#valueObject (readonly)

Returns the value of attribute value.



15
16
17
# File 'lib/pdi/spoon/result.rb', line 15

def value
  @value
end