Class: DataMiner::Step::Process

Inherits:
DataMiner::Step show all
Defined in:
lib/data_miner/step/process.rb

Overview

A step that executes a single class method on the model or an arbitrary code block.

Create these by calling process inside a data_miner block.

Instance Attribute Summary collapse

Method Summary

Methods inherited from DataMiner::Step

#notify, #pos, #register, #target?

Instance Attribute Details

#blkProc (readonly)

The block of arbitrary code to be run.



20
21
22
# File 'lib/data_miner/step/process.rb', line 20

def blk
  @blk
end

#descriptionString (readonly) Also known as: block_description

A description of what the block does. Doesn't exist when a single class method is specified using a Symbol.



16
17
18
# File 'lib/data_miner/step/process.rb', line 16

def description
  @description
end

#method_idSymbol (readonly)

The method to be called on the model class.



12
13
14
# File 'lib/data_miner/step/process.rb', line 12

def method_id
  @method_id
end