Class: Kiba::Extend::Transforms::MsAccess::ScientificNotationToNumberString

Inherits:
Object
  • Object
show all
Defined in:
lib/kiba/extend/transforms/ms_access.rb

Instance Method Summary collapse

Constructor Details

#initialize(fields:) ⇒ ScientificNotationToNumberString

Returns a new instance of ScientificNotationToNumberString.



14
15
16
# File 'lib/kiba/extend/transforms/ms_access.rb', line 14

def initialize(fields:)
  @fields = [fields].flatten
end

Instance Method Details

#process(row) ⇒ Object

Parameters:

  • row (Hash{ Symbol => String, nil })


19
20
21
22
# File 'lib/kiba/extend/transforms/ms_access.rb', line 19

def process(row)
  @fields.each { |field| process_field(row, field) }
  row
end