Method: Flatter::Mapping#initialize

Defined in:
lib/flatter/mapping.rb

#initialize(mapper, name, target_attribute, **options) ⇒ Mapping

Returns a new instance of Mapping.



12
13
14
15
16
17
# File 'lib/flatter/mapping.rb', line 12

def initialize(mapper, name, target_attribute, **options)
  @mapper           = mapper
  @name             = name.to_s
  @target_attribute = target_attribute
  @options          = options
end