Class: USPSFlags::Core::Pennant

Inherits:
Object
  • Object
show all
Defined in:
lib/usps_flags/core/pennant.rb

Instance Method Summary collapse

Constructor Details

#initialize(type: :cruise) ⇒ Pennant

Returns a new instance of Pennant.



10
11
12
13
14
# File 'lib/usps_flags/core/pennant.rb', line 10

def initialize(type: :cruise)
  @type = type.to_s.upcase
  @fly = USPSFlags::Config::BASE_FLY
  @hoist = USPSFlags::Config::BASE_HOIST / 4
end

Instance Method Details

#svgObject



16
17
18
19
# File 'lib/usps_flags/core/pennant.rb', line 16

def svg
  return oic if @type == 'OIC'
  return cruise if @type == 'CRUISE'
end