Module: Dozer::Mapperable
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/dozer/mapperable.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
Instance Method Details
#initialize(input, data) ⇒ Object
9 10 11 12 13 |
# File 'lib/dozer/mapperable.rb', line 9 def initialize(input, data) @input = input.with_indifferent_access @output = ActiveSupport::HashWithIndifferentAccess.new = data.with_indifferent_access end |