Class: Cure::Export::YieldRowProcessor

Inherits:
BaseProcessor show all
Defined in:
lib/cure/export/base_processor.rb

Instance Attribute Summary collapse

Attributes inherited from BaseProcessor

#named_range

Instance Method Summary collapse

Methods inherited from BaseProcessor

#initialize, #process

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

#procObject (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

#cleanupObject



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

#setupObject



187
188
189
# File 'lib/cure/export/base_processor.rb', line 187

def setup
  @proc = @opts.fetch(:proc)
end