Class: Csvtool::Domain::CrossCsvDedupeSession::KeyMapping
- Inherits:
-
Object
- Object
- Csvtool::Domain::CrossCsvDedupeSession::KeyMapping
- Defined in:
- lib/csvtool/domain/cross_csv_dedupe_session/key_mapping.rb
Instance Attribute Summary collapse
-
#reference_selector ⇒ Object
readonly
Returns the value of attribute reference_selector.
-
#source_selector ⇒ Object
readonly
Returns the value of attribute source_selector.
Instance Method Summary collapse
-
#initialize(source_selector:, reference_selector:) ⇒ KeyMapping
constructor
A new instance of KeyMapping.
Constructor Details
#initialize(source_selector:, reference_selector:) ⇒ KeyMapping
Returns a new instance of KeyMapping.
11 12 13 14 15 16 17 18 |
# File 'lib/csvtool/domain/cross_csv_dedupe_session/key_mapping.rb', line 11 def initialize(source_selector:, reference_selector:) unless source_selector.is_a?(ColumnSelector) && reference_selector.is_a?(ColumnSelector) raise ArgumentError, "selectors must be ColumnSelector" end @source_selector = source_selector @reference_selector = reference_selector end |
Instance Attribute Details
#reference_selector ⇒ Object (readonly)
Returns the value of attribute reference_selector.
9 10 11 |
# File 'lib/csvtool/domain/cross_csv_dedupe_session/key_mapping.rb', line 9 def reference_selector @reference_selector end |
#source_selector ⇒ Object (readonly)
Returns the value of attribute source_selector.
9 10 11 |
# File 'lib/csvtool/domain/cross_csv_dedupe_session/key_mapping.rb', line 9 def source_selector @source_selector end |