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.
69 70 71 72 |
# File 'lib/sheetah/sheet.rb', line 69 def initialize(row:, value:) @row = row @value = value end |
Instance Attribute Details
#row ⇒ Object (readonly)
Returns the value of attribute row.
74 75 76 |
# File 'lib/sheetah/sheet.rb', line 74 def row @row end |
#value ⇒ Object (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 |