Sha256: ebad04b68a2c4689bb41dada8f0179d064a5bdde858372f08ad0f64b0d043590
Contents?: true
Size: 499 Bytes
Versions: 7
Compression:
Stored size: 499 Bytes
Contents
# frozen_string_literal: true require_relative 'build' require_relative 'pdf/render' module Thinreports module SectionReport class Generate def initialize @pdf = Thinreports::Generator::PDF::Document.new end def call(report_params, filename: nil) report = Build.new.call(report_params) PDF::Render.new(pdf).call!(report) filename ? pdf.render_file(filename) : pdf.render end private attr_reader :pdf end end end
Version data entries
7 entries across 7 versions & 1 rubygems