Sha256: 350ff93d60413111d6ad5c039d817743c5f5f6cf4e4d684d908da91d9e53c7f4

Contents?: true

Size: 451 Bytes

Versions: 7

Compression:

Stored size: 451 Bytes

Contents

# frozen_string_literal: true

require_relative 'renderer/group_renderer'

module Thinreports
  module SectionReport
    module PDF
      class Render
        def initialize(pdf)
          @group_renderer = Renderer::GroupRenderer.new(pdf)
        end

        def call!(report)
          report.groups.each { |group| group_renderer.render(report, group) }
        end

        private

        attr_reader :group_renderer
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
thinreports-0.14.2 lib/thinreports/section_report/pdf/render.rb
thinreports-0.14.1 lib/thinreports/section_report/pdf/render.rb
thinreports-0.14.0 lib/thinreports/section_report/pdf/render.rb
thinreports-0.13.1 lib/thinreports/section_report/pdf/render.rb
thinreports-0.13.0 lib/thinreports/section_report/pdf/render.rb
thinreports-0.12.1 lib/thinreports/section_report/pdf/render.rb
thinreports-0.12.0 lib/thinreports/section_report/pdf/render.rb