Class: SequencescapeExcel::NullObjects::NullColumnList

Inherits:
Object
  • Object
show all
Defined in:
app/sequencescape_excel/sequencescape_excel/null_objects/null_column_list.rb

Overview

NullColumnList

Instance Method Summary collapse

Instance Method Details

#errorsObject



23
24
25
# File 'app/sequencescape_excel/sequencescape_excel/null_objects/null_column_list.rb', line 23

def errors
  { columns: 'Not valid' }
end

#extract(_headings) ⇒ Object



8
9
10
# File 'app/sequencescape_excel/sequencescape_excel/null_objects/null_column_list.rb', line 8

def extract(_headings)
  NullColumnList.new
end

#find_by(_key, _value) ⇒ Object



12
13
# File 'app/sequencescape_excel/sequencescape_excel/null_objects/null_column_list.rb', line 12

def find_by(_key, _value)
end

#find_column_or_null(_key, _value) ⇒ Object



15
16
17
# File 'app/sequencescape_excel/sequencescape_excel/null_objects/null_column_list.rb', line 15

def find_column_or_null(_key, _value)
  NullColumn.new
end

#valid?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'app/sequencescape_excel/sequencescape_excel/null_objects/null_column_list.rb', line 19

def valid?
  false
end

#with_specialised_fieldsObject



27
28
29
# File 'app/sequencescape_excel/sequencescape_excel/null_objects/null_column_list.rb', line 27

def with_specialised_fields
  []
end