Method: ActiveShipping::Location#country_code
- Defined in:
- lib/active_shipping/location.rb
#country_code(format = :alpha2) ⇒ Object
79 80 81 |
# File 'lib/active_shipping/location.rb', line 79 def country_code(format = :alpha2) @country.nil? ? nil : @country.code(format).value end |