Class: Sheetah::Sheet::Row
- Inherits:
-
Object
- Object
- Sheetah::Sheet::Row
- Defined in:
- lib/sheetah/sheet.rb
Instance Attribute Summary collapse
-
#row ⇒ Object
readonly
Returns the value of attribute row.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(row:, value:) ⇒ Row
constructor
A new instance of Row.
Constructor Details
#initialize(row:, value:) ⇒ Row
Returns a new instance of Row.
65 66 67 68 |
# File 'lib/sheetah/sheet.rb', line 65 def initialize(row:, value:) @row = row @value = value end |
Instance Attribute Details
#row ⇒ Object (readonly)
Returns the value of attribute row.
70 71 72 |
# File 'lib/sheetah/sheet.rb', line 70 def row @row end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
70 71 72 |
# File 'lib/sheetah/sheet.rb', line 70 def value @value end |
Instance Method Details
#==(other) ⇒ Object
72 73 74 |
# File 'lib/sheetah/sheet.rb', line 72 def ==(other) other.is_a?(self.class) && row == other.row && value == other.value end |