Class: Kiba::Extend::Transforms::MsAccess::ScientificNotationToNumberString
- Inherits:
-
Object
- Object
- Kiba::Extend::Transforms::MsAccess::ScientificNotationToNumberString
- Defined in:
- lib/kiba/extend/transforms/ms_access.rb
Instance Method Summary collapse
-
#initialize(fields:) ⇒ ScientificNotationToNumberString
constructor
A new instance of ScientificNotationToNumberString.
-
#process(row) ⇒ Object
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
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 |