Class: Signoff::Pdf
- Inherits:
-
Object
- Object
- Signoff::Pdf
- Defined in:
- lib/artisan/reports/signoff/pdf.rb
Instance Method Summary collapse
-
#initialize(report) ⇒ Pdf
constructor
A new instance of Pdf.
- #render ⇒ Object
- #to_document ⇒ Object
Constructor Details
#initialize(report) ⇒ Pdf
Returns a new instance of Pdf.
6 7 8 |
# File 'lib/artisan/reports/signoff/pdf.rb', line 6 def initialize(report) @report = report end |
Instance Method Details
#render ⇒ Object
10 11 12 |
# File 'lib/artisan/reports/signoff/pdf.rb', line 10 def render to_document.render end |
#to_document ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/artisan/reports/signoff/pdf.rb', line 14 def to_document @document = Prawn::Document.new fonts header project_title iteration_information tables committed_total signature_box @document end |