Class: Renalware::Forms::Generic::Homecare::V1::Heading
- Defined in:
- lib/renalware/forms/generic/homecare/v1/heading.rb
Constant Summary
Constants inherited from Base
Constants inherited from Base
Base::CHECKBOX, Base::EMPTY_CHECKBOX
Instance Method Summary collapse
Methods inherited from Base
Methods inherited from Base
#borderless_table_style, #cell_with_leading_checkbox, #cell_with_trailing_checkbox, #underlined_table_style
Instance Method Details
#build ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/renalware/forms/generic/homecare/v1/heading.rb', line 6 def build move_down 10 font_size 12 text "PO: #{args.po_number}" font_size 8 text "RW ref: #{args.hospital_number}" text "Drugs types: #{args.drug_type}" move_down 30 font_size 16 text "Home Delivery Medication List", style: :bold font_size 8 text "As at #{args.generated_at}" image( File.join(File.dirname(__dir__), "v1/assets/nhs_logo.jpg"), width: 60, at: [490, 800] ) font_size 10 text_box args.formatted_hospital_address, at: [350, 765], width: 200, align: :right end |