Class: Signoff::Pdf

Inherits:
Object
  • Object
show all
Defined in:
lib/artisan/reports/signoff/pdf.rb

Instance Method Summary collapse

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

#renderObject



10
11
12
# File 'lib/artisan/reports/signoff/pdf.rb', line 10

def render
  to_document.render
end

#to_documentObject



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