Class: Renalware::Forms::Generic::Homecare::V1::Heading

Inherits:
Base
  • Object
show all
Defined in:
lib/renalware/forms/generic/homecare/v1/heading.rb

Constant Summary

Constants inherited from Base

Base::TABLE_WIDTH

Constants inherited from Base

Base::CHECKBOX, Base::EMPTY_CHECKBOX

Instance Method Summary collapse

Methods inherited from Base

#heading, #table_styles

Methods inherited from Base

#borderless_table_style, #cell_with_leading_checkbox, #cell_with_trailing_checkbox, #underlined_table_style

Instance Method Details

#buildObject



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