Class: DataMiner::Step::Callback
- Inherits:
-
DataMiner::Step
- Object
- DataMiner::Step
- DataMiner::Step::Callback
- Defined in:
- lib/data_miner/step/callback.rb
Instance Attribute Summary collapse
-
#foreign_step ⇒ Object
Returns the value of attribute foreign_step.
Attributes inherited from DataMiner::Step
#configuration, #number, #options
Instance Method Summary collapse
-
#initialize(configuration, foreign_step) ⇒ Callback
constructor
A new instance of Callback.
- #perform(*args) ⇒ Object
- #signature ⇒ Object
Methods inherited from DataMiner::Step
#affect, #affected_attributes, #all_attributes, #awaiting?, #inspect, #key, #key_attributes, #map_to_attrs, #variant
Constructor Details
#initialize(configuration, foreign_step) ⇒ Callback
Returns a new instance of Callback.
6 7 8 9 10 |
# File 'lib/data_miner/step/callback.rb', line 6 def initialize(configuration, foreign_step) @configuration = configuration @foreign_step = foreign_step @number = "(last)" end |
Instance Attribute Details
#foreign_step ⇒ Object
Returns the value of attribute foreign_step.
4 5 6 |
# File 'lib/data_miner/step/callback.rb', line 4 def foreign_step @foreign_step end |
Instance Method Details
#perform(*args) ⇒ Object
12 13 14 15 |
# File 'lib/data_miner/step/callback.rb', line 12 def perform(*args) foreign_step.callback $stderr.puts "performed #{signature}" end |
#signature ⇒ Object
17 18 19 |
# File 'lib/data_miner/step/callback.rb', line 17 def signature "#{super} (on behalf of #{foreign_step.signature})" end |