Class: USPSFlags::Core::TridentSpecs::Header

Inherits:
Base
  • Object
show all
Defined in:
lib/usps_flags/core/trident_specs/header.rb

Instance Method Summary collapse

Constructor Details

#initialize(**options) ⇒ Header

Returns a new instance of Header.



11
12
13
14
15
16
17
18
19
20
# File 'lib/usps_flags/core/trident_specs/header.rb', line 11

def initialize(**options)
  super(**options)
  @fly = options[:fly]
  @fly_fraction = options[:fly_fraction]
  @hoist = options[:hoist]
  @hoist_fraction = options[:hoist_fraction]
  @unit_text = options[:unit_text]
  @scaled_border = options[:scaled_border]
  @no_measurements = options.key?(:no_measurements) && options[:no_measurements]
end

Instance Method Details

#pObject



22
23
24
25
26
27
28
29
# File 'lib/usps_flags/core/trident_specs/header.rb', line 22

def p
  <<~SVG
    #{field}

    #{heading}
    #{units}
  SVG
end