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


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

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
# 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


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

def find_column_or_null(_key, _value)
  NullColumn.new
end

#valid?Boolean

Returns:

  • (Boolean)

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

def valid?
  false
end

#with_specialised_fieldsObject


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

def with_specialised_fields
  []
end