module CsvRowModel::Import::File::Validations
Public Instance Methods
abort?()
click to toggle source
@return [Boolean] returns true, if the file should abort reading
# File lib/csv_row_model/import/file/validations.rb, line 15 def abort? !valid? || !!current_row_model.try(:abort?) end
skip?()
click to toggle source
@return [Boolean] returns true, if the file should skip ‘current_row_model`
# File lib/csv_row_model/import/file/validations.rb, line 20 def skip? !!current_row_model.try(:skip?) end
Protected Instance Methods
_abort?()
click to toggle source
# File lib/csv_row_model/import/file/validations.rb, line 25 def _abort? abort = abort? run_callbacks(:abort) if abort abort end
_skip?()
click to toggle source
# File lib/csv_row_model/import/file/validations.rb, line 31 def _skip? skip = skip? run_callbacks(:skip) if skip skip end