Class: SampleManifestExcel::ManifestTypeList::ManifestType

Inherits:
Object
  • Object
show all
Includes:
SequencescapeExcel::Helpers::Attributes
Defined in:
app/sample_manifest_excel/sample_manifest_excel/manifest_type_list.rb

Overview

ManifestType

Instance Method Summary collapse

Methods included from SequencescapeExcel::Helpers::Attributes

#<=>

Constructor Details

#initialize(attributes = {}) ⇒ ManifestType

Returns a new instance of ManifestType.



55
56
57
# File 'app/sample_manifest_excel/sample_manifest_excel/manifest_type_list.rb', line 55

def initialize(attributes = {})
  super
end

Instance Method Details

#==(other) ⇒ Object



63
64
65
66
67
68
# File 'app/sample_manifest_excel/sample_manifest_excel/manifest_type_list.rb', line 63

def ==(other)
  return false unless other.is_a?(self.class)

  name == other.name && columns == other.columns && heading == other.heading && asset_type == other.asset_type &&
    rows_per_well == other.rows_per_well && invalid_wells == other.invalid_wells
end

#to_aObject



59
60
61
# File 'app/sample_manifest_excel/sample_manifest_excel/manifest_type_list.rb', line 59

def to_a
  [heading, name]
end