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


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

def initialize(attributes = {})
  super
end

Instance Method Details

#==(other) ⇒ Object


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

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

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

#to_aObject


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

def to_a
  [heading, name]
end