Class: Ruport::Data::Graph

Inherits:
Table
  • Object
show all
Defined in:
lib/ruport/util/graph.rb

Instance Method Summary collapse

Methods included from Table::FromXLS

#load_xls, #parse_xls

Methods included from Table::FromODS

#load_ods, #parse_ods

Instance Method Details

#initialize_copy(from) ⇒ Object



38
39
40
41
42
43
# File 'lib/ruport/util/graph.rb', line 38

def initialize_copy(from)
  super
  data.zip(from.data).each do |new_row,old_row|
    new_row.gid = old_row.gid
  end
end

#series(data, gid = nil) ⇒ Object



33
34
35
36
# File 'lib/ruport/util/graph.rb', line 33

def series(data,gid=nil)
  self << data
  self[-1].gid = gid
end