lib/report/body/row.rb in report-0.0.1 vs lib/report/body/row.rb in report-0.0.2

- old
+ new

@@ -1,19 +1,21 @@ class Report class Body class Row attr_reader :body attr_reader :obj - def initialize(body, obj) + attr_reader :report + def initialize(body, report, obj) @body = body + @report = report @obj = obj end def to_a - body.columns.map { |column| column.read(obj) } + body.columns.map { |column| column.read(report, obj) } end def to_hash body.columns.map do |column| - column.read_with_options obj + column.read_with_options report, obj end end end end end