Class: Cure::Export::YieldRowProcessor
- Inherits:
-
BaseProcessor
- Object
- BaseProcessor
- Cure::Export::YieldRowProcessor
- Defined in:
- lib/cure/export/base_processor.rb
Instance Attribute Summary collapse
-
#proc ⇒ Object
readonly
Returns the value of attribute proc.
Attributes inherited from BaseProcessor
Instance Method Summary collapse
Methods inherited from BaseProcessor
Methods included from Log
#log_debug, #log_error, #log_info, #log_trace, #log_warn
Constructor Details
This class inherits a constructor from Cure::Export::BaseProcessor
Instance Attribute Details
#proc ⇒ Object (readonly)
Returns the value of attribute proc.
181 182 183 |
# File 'lib/cure/export/base_processor.rb', line 181 def proc @proc end |
Instance Method Details
#cleanup ⇒ Object
191 |
# File 'lib/cure/export/base_processor.rb', line 191 def cleanup; end |
#process_row(row) ⇒ Object
183 184 185 |
# File 'lib/cure/export/base_processor.rb', line 183 def process_row(row) @proc.call(row) end |
#setup ⇒ Object
187 188 189 |
# File 'lib/cure/export/base_processor.rb', line 187 def setup @proc = @opts.fetch(:proc) end |