Class: ShipEngine::Constants::Country

Inherits:
Object
  • Object
show all
Defined in:
lib/shipengine/constants/countries.rb

Class Method Summary collapse

Class Method Details

.valid?(country) ⇒ Boolean

Parameters:

  • country (String)
    • 2 letter country code

Returns:

  • (Boolean)


11
12
13
# File 'lib/shipengine/constants/countries.rb', line 11

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