Class: Sheetah::Headers::Header
- Inherits:
-
Object
- Object
- Sheetah::Headers::Header
- Defined in:
- lib/sheetah/headers.rb
Instance Attribute Summary collapse
-
#column ⇒ Object
readonly
Returns the value of attribute column.
-
#header ⇒ Object
readonly
Returns the value of attribute header.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(sheet_header, spec_column) ⇒ Header
constructor
A new instance of Header.
- #row_value_index ⇒ Object
Constructor Details
#initialize(sheet_header, spec_column) ⇒ Header
Returns a new instance of Header.
13 14 15 16 |
# File 'lib/sheetah/headers.rb', line 13 def initialize(sheet_header, spec_column) @header = sheet_header @column = spec_column end |
Instance Attribute Details
#column ⇒ Object (readonly)
Returns the value of attribute column.
18 19 20 |
# File 'lib/sheetah/headers.rb', line 18 def column @column end |
#header ⇒ Object (readonly)
Returns the value of attribute header.
18 19 20 |
# File 'lib/sheetah/headers.rb', line 18 def header @header end |
Instance Method Details
#==(other) ⇒ Object
20 21 22 23 24 |
# File 'lib/sheetah/headers.rb', line 20 def ==(other) other.is_a?(self.class) && header == other.header && column == other.column end |
#row_value_index ⇒ Object
26 27 28 |
# File 'lib/sheetah/headers.rb', line 26 def row_value_index header.row_value_index end |