Class: SheetsDB::Worksheet::Column
- Inherits:
-
Object
- Object
- SheetsDB::Worksheet::Column
- Defined in:
- lib/sheets_db/worksheet/column.rb
Instance Attribute Summary collapse
-
#column_position ⇒ Object
readonly
Returns the value of attribute column_position.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(name:, column_position:) ⇒ Column
constructor
A new instance of Column.
Constructor Details
#initialize(name:, column_position:) ⇒ Column
Returns a new instance of Column.
6 7 8 9 |
# File 'lib/sheets_db/worksheet/column.rb', line 6 def initialize(name:, column_position:) @name = name @column_position = column_position end |
Instance Attribute Details
#column_position ⇒ Object (readonly)
Returns the value of attribute column_position.
4 5 6 |
# File 'lib/sheets_db/worksheet/column.rb', line 4 def column_position @column_position end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/sheets_db/worksheet/column.rb', line 4 def name @name end |
Instance Method Details
#==(other) ⇒ Object
11 12 13 14 15 |
# File 'lib/sheets_db/worksheet/column.rb', line 11 def ==(other) other.is_a?(self.class) && other.name == name && other.column_position == column_position end |