Class: USPSFlags::Core::Pennant
- Inherits:
-
Object
- Object
- USPSFlags::Core::Pennant
- Defined in:
- lib/usps_flags/core/pennant.rb
Instance Method Summary collapse
-
#initialize(type: :cruise) ⇒ Pennant
constructor
A new instance of Pennant.
- #svg ⇒ Object
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
#svg ⇒ Object
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 |