Class: PiecePipe::Collector
Instance Attribute Summary
Attributes inherited from Step
Instance Method Summary collapse
-
#initialize(key) ⇒ Collector
constructor
A new instance of Collector.
- #process(hash) ⇒ Object
Methods inherited from Step
Constructor Details
#initialize(key) ⇒ Collector
3 4 5 |
# File 'lib/piece_pipe/collector.rb', line 3 def initialize(key) @key = key end |
Instance Method Details
#process(hash) ⇒ Object
7 8 9 |
# File 'lib/piece_pipe/collector.rb', line 7 def process(hash) produce hash[@key] end |