Module: Clinvoice::RenderNotes

Defined in:
lib/clinvoice/render_notes.rb

Class Method Summary collapse

Class Method Details

.call(pdf, notes) ⇒ Object



5
6
7
8
9
10
11
12
# File 'lib/clinvoice/render_notes.rb', line 5

def self.call(pdf, notes)
  return unless notes

  pdf.table(items(notes), width: 275) do
    style(row(0).columns(0), font_style: :bold)
    style(row(0..-1).columns(0..-1), padding: [1, 0, 1, 0], borders: [])
  end
end