Module: ShipEngine::Constants::Country

Defined in:
lib/shipengine/constants.rb

Class Method Summary collapse

Class Method Details

.valid?(country) ⇒ Boolean

Parameters:

  • country (String)
    • 2 letter country code

Returns:

  • (Boolean)


198
199
200
# File 'lib/shipengine/constants.rb', line 198

def self.valid?(country)
  @countries.include?(country.upcase)
end