Module: Clinvoice::RenderNameAndAddress
- Defined in:
- lib/clinvoice/render_name_and_address.rb
Class Method Summary collapse
Class Method Details
.call(pdf, label, entity) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 |
# 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 |