Sha256: 5f30c98fd57c818099d0ca4ce1da571ea379c69cfaa20dd17b8e041502c5b431

Contents?: true

Size: 383 Bytes

Versions: 1

Compression:

Stored size: 383 Bytes

Contents

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
report-0.0.1 lib/report/body/row.rb