module Clinvoice::RenderNotes

Public Class Methods

call(pdf, notes) click to toggle source
# 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

Private Class Methods

items(notes) click to toggle source
# File lib/clinvoice/render_notes.rb, line 16
def self.items(notes)
  [['Notes'], [notes]]
end