Class: OldSql::ReportDesign::Row

Inherits:
Object
  • Object
show all
Defined in:
lib/old_sql/report_design/row.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value) ⇒ Row

Returns a new instance of Row.



6
7
8
9
10
11
12
13
# File 'lib/old_sql/report_design/row.rb', line 6

def initialize(value)
  @data = value
  @cells = []
  
  @data.split(",").each do |cell|
    @cells << Cell.new(cell)
  end
end

Instance Attribute Details

#cellsObject

Returns the value of attribute cells.



4
5
6
# File 'lib/old_sql/report_design/row.rb', line 4

def cells
  @cells
end

#dataObject

Returns the value of attribute data.



4
5
6
# File 'lib/old_sql/report_design/row.rb', line 4

def data
  @data
end

Instance Method Details

#cell(index) ⇒ Object



15
16
17
# File 'lib/old_sql/report_design/row.rb', line 15

def cell(index)
  @cells[index]
end