Sha256: 1951677d9bcd8ad37748295c0fd08d2ac1704479bdfbe9c894e508f2ebe7745d

Contents?: true

Size: 458 Bytes

Versions: 4

Compression:

Stored size: 458 Bytes

Contents

class Report
  class Body
    class Row
      attr_reader :body
      attr_reader :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(report, obj) }
      end
      def to_hash
        body.columns.map do |column|
          column.read_with_options report, obj
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
report-0.1.1 lib/report/body/row.rb
report-0.1.0 lib/report/body/row.rb
report-0.0.3 lib/report/body/row.rb
report-0.0.2 lib/report/body/row.rb