Class: SmartCsvImport::UnmatchedResult

Inherits:
Object
  • Object
show all
Defined in:
lib/smart_csv_import/match_result.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_strategiesObject (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_headerObject (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

Returns:

  • (Boolean)


33
# File 'lib/smart_csv_import/match_result.rb', line 33

def matched? = false

#unmatched?Boolean

Returns:

  • (Boolean)


34
# File 'lib/smart_csv_import/match_result.rb', line 34

def unmatched? = true