Class: ETL::Transform::OrdinalizeTransform
- Defined in:
- lib/etl/transform/ordinalize_transform.rb
Overview
Transform a number to an ordinalized version using the ActiveSupport ordinalize core extension
Instance Attribute Summary
Attributes inherited from Transform
#configuration, #control, #name
Instance Method Summary collapse
-
#transform(name, value, row) ⇒ Object
Transform the value from a number to an ordinalized number.
Methods inherited from Transform
benchmarks, #initialize, transform
Constructor Details
This class inherits a constructor from ETL::Transform::Transform
Instance Method Details
#transform(name, value, row) ⇒ Object
Transform the value from a number to an ordinalized number
7 8 9 |
# File 'lib/etl/transform/ordinalize_transform.rb', line 7 def transform(name, value, row) value.ordinalize end |