Class: PBatcher::Processor
- Inherits:
-
ProcHandler
- Object
- Handler
- ProcHandler
- PBatcher::Processor
- Defined in:
- lib/pbatcher/processor.rb
Instance Attribute Summary
Attributes inherited from ProcHandler
Attributes inherited from Handler
Instance Method Summary collapse
Methods inherited from ProcHandler
Methods inherited from Handler
Constructor Details
This class inherits a constructor from PBatcher::ProcHandler
Instance Method Details
#process(item) ⇒ Object
3 4 5 6 7 8 9 10 11 |
# File 'lib/pbatcher/processor.rb', line 3 def process(item) pre(item) result = call(item) raise "Item #{item} is not a valid item." unless generator.validator.valid?(result) success(item) result rescue => e failure(item, e) end |