Class: USPSFlags::Helpers

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

Overview

Container class for helper methods.

Since:

  • 0.1.5

Class Method Summary collapse

Class Method Details

.valid_flags(type = :all) ⇒ Array

Valid options for flag generation.

Parameters:

  • type (Symbol) (defaults to: :all)

    Specify subset of flags.

Options Hash (type):

  • :all (Symbol)

    All flags

  • :officer (Symbol)

    Officer flags

  • :insignia (Symbol)

    Insignia-eligible officer flags (no past officers)

  • :squadron (Symbol)

    Squadron-level officer flags

  • :district (Symbol)

    District-level officer flags

  • :national (Symbol)

    National-level officer flags

  • :special (Symbol)

    Special flags

  • :us (Symbol)

    US flag

Returns:

  • (Array)

    Valid options for flag generation (based on the provided type).

Since:

  • 0.1.5



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

def valid_flags(type = :all)
  load_valid_flags
  valid_flags_for(type)
end