Class: NormalizeOptions::HashWithMapperHash

Inherits:
Base
  • Object
show all
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

#initialize

Constructor Details

This class inherits a constructor from NormalizeOptions::Base

Instance Method Details

#callObject



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|
    new_options[to.to_sym] = options[from.to_sym]
  end

  new_options
end