Class: ETL::Transform::OrdinalizeTransform

Inherits:
Transform show all
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

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



9
10
11
# File 'lib/etl/transform/ordinalize_transform.rb', line 9

def transform(name, value, row)
  value.ordinalize
end