Class: SmartCsvImport::UnmatchedResult
- Inherits:
-
Object
- Object
- SmartCsvImport::UnmatchedResult
- Defined in:
- lib/smart_csv_import/match_result.rb
Instance Attribute Summary collapse
-
#attempted_strategies ⇒ Object
readonly
Returns the value of attribute attempted_strategies.
-
#csv_header ⇒ Object
readonly
Returns the value of attribute csv_header.
Instance Method Summary collapse
-
#initialize(csv_header:, attempted_strategies:) ⇒ UnmatchedResult
constructor
A new instance of UnmatchedResult.
- #matched? ⇒ Boolean
- #unmatched? ⇒ Boolean
Constructor Details
#initialize(csv_header:, attempted_strategies:) ⇒ UnmatchedResult
Returns a new instance of UnmatchedResult.
28 29 30 31 |
# File 'lib/smart_csv_import/match_result.rb', line 28 def initialize(csv_header:, attempted_strategies:) @csv_header = csv_header @attempted_strategies = attempted_strategies end |
Instance Attribute Details
#attempted_strategies ⇒ Object (readonly)
Returns the value of attribute attempted_strategies.
26 27 28 |
# File 'lib/smart_csv_import/match_result.rb', line 26 def attempted_strategies @attempted_strategies end |
#csv_header ⇒ Object (readonly)
Returns the value of attribute csv_header.
26 27 28 |
# File 'lib/smart_csv_import/match_result.rb', line 26 def csv_header @csv_header end |
Instance Method Details
#matched? ⇒ Boolean
33 |
# File 'lib/smart_csv_import/match_result.rb', line 33 def matched? = false |
#unmatched? ⇒ Boolean
34 |
# File 'lib/smart_csv_import/match_result.rb', line 34 def unmatched? = true |