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
# File 'lib/wolf_core/application/burnett/data_transformation/mappings.rb', line 18

def map_job_type(value)
  JOB_TYPE_MAPPING[value] || value
end

#revert_map_job_type(value) ⇒ Object



22
23
24
# File 'lib/wolf_core/application/burnett/data_transformation/mappings.rb', line 22

def revert_map_job_type(value)
  JOB_TYPE_MAPPING.invert[value] || value
end