Module: WolfCore::Burnett::Mappings
- Defined in:
- lib/wolf_core/application/burnett/data_transformation/mappings.rb
Constant Summary collapse
- JOB_TYPE_MAPPING =
{ '144' => '26', '145' => '30', '153' => '24', '152' => '28', '155' => '12', '156' => '22', '150' => '27', '148' => '31', '158' => '25', '151' => '29', '163' => '23', }
Instance Method Summary collapse
Instance Method Details
#map_job_type(value) ⇒ Object
18 19 20 21 |
# File 'lib/wolf_core/application/burnett/data_transformation/mappings.rb', line 18 def map_job_type(value) value = value.to_s JOB_TYPE_MAPPING[value] || value end |
#revert_map_job_type(value) ⇒ Object
23 24 25 26 |
# File 'lib/wolf_core/application/burnett/data_transformation/mappings.rb', line 23 def revert_map_job_type(value) value = value.to_s JOB_TYPE_MAPPING.invert[value] || value end |