Class: StackOneMigration::ProviderMapper
- Inherits:
-
Object
- Object
- StackOneMigration::ProviderMapper
- Defined in:
- lib/stackone_migration/mappers/provider_mapper.rb
Class Method Summary collapse
Class Method Details
.map_to_stackone_provider_name(provider_name) ⇒ Object
16 17 18 19 20 21 22 23 |
# File 'lib/stackone_migration/mappers/provider_mapper.rb', line 16 def self.map_to_stackone_provider_name(provider_name) return nil if provider_name.nil? mapped_provider_name = provider_name_hash[provider_name.to_sym] return mapped_provider_name unless mapped_provider_name.nil? provider_name end |
.provider_name_hash ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/stackone_migration/mappers/provider_mapper.rb', line 3 def self.provider_name_hash { :hibob => 'hibob', :workday => 'workday', :bamboohr => 'bamboohr', :'ukg-ready' => 'ukgready', :'ukg-pro' => 'ukgpro', :'sage-hr' => 'sage', :'adp-workforce-now' => 'adpworkforcenow', :'sap-successfactors' => 'sapsuccessfactors', } end |