Class: Tabulo::CellData

Inherits:
Struct
  • Object
show all
Defined in:
lib/tabulo/cell_data.rb

Overview

Contains information about a particular Cell in the Table.

Instance Attribute Summary collapse

Instance Attribute Details

#column_indexInteger

The positional index of the Tabulo::Cell's Tabulo::Column. The leftmost Tabulo::Column of the Table has index 0, the next has index 1, etc..

Returns:

  • (Integer)

    the current value of column_index



12
13
14
# File 'lib/tabulo/cell_data.rb', line 12

def column_index
  @column_index
end

#row_indexInteger

The positional index of the Tabulo::Cell's Row. The topmost Row of the Table has index 0, the next has index 1, etc.. The header row(s) are not counted for the purpose of this numbering.

Returns:

  • (Integer)

    the current value of row_index



12
13
14
# File 'lib/tabulo/cell_data.rb', line 12

def row_index
  @row_index
end

#sourceObject

The member of this Tabulo::Cell's Table's underlying enumerable from which this Tabulo::Cell's Row was derived.

Returns:

  • (Object)

    the current value of source



12
13
14
# File 'lib/tabulo/cell_data.rb', line 12

def source
  @source
end