module Clinvoice::RenderNameAndAddress

Public Class Methods

call(pdf, label, entity) click to toggle source
# File lib/clinvoice/render_name_and_address.rb, line 5
def self.call(pdf, label, entity)
  Clinvoice::Helper.new_bold_line(pdf, label)
  Clinvoice::Helper.new_line(pdf, entity['name'])

  if entity['address']
    Clinvoice::Helper.new_line(pdf, entity['address']['line1'])
    Clinvoice::Helper.new_line(pdf, entity['address']['line2'])
  end

  pdf.move_down 10
end