Class: NormalizeOptions::HashWithMapperHash
- Defined in:
- lib/service_api/normalize_options/hash_with_mapper_hash.rb
Instance Attribute Summary
Attributes inherited from Base
#mapper, #new_options, #options
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from NormalizeOptions::Base
Instance Method Details
#call ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/service_api/normalize_options/hash_with_mapper_hash.rb', line 3 def call mapper.each do |from, to| [to.to_sym] = [from.to_sym] end end |