Class: Sheetah::Sheet::Row

Inherits:
Object
  • Object
show all
Defined in:
lib/sheetah/sheet.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(row:, value:) ⇒ Row

Returns a new instance of Row.



69
70
71
72
# File 'lib/sheetah/sheet.rb', line 69

def initialize(row:, value:)
  @row = row
  @value = value
end

Instance Attribute Details

#rowObject (readonly)

Returns the value of attribute row.



74
75
76
# File 'lib/sheetah/sheet.rb', line 74

def row
  @row
end

#valueObject (readonly)

Returns the value of attribute value.



74
75
76
# File 'lib/sheetah/sheet.rb', line 74

def value
  @value
end

Instance Method Details

#==(other) ⇒ Object



76
77
78
# File 'lib/sheetah/sheet.rb', line 76

def ==(other)
  other.is_a?(self.class) && row == other.row && value == other.value
end