Class: CountryShippingZone

Inherits:
ShippingZone show all
Defined in:
app/models/country_shipping_zone.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Permalink::Builder

#set_permalink, #to_param

Class Method Details

.all_country_codesObject



15
16
17
# File 'app/models/country_shipping_zone.rb', line 15

def self.all_country_codes
  CountryShippingZone.pluck(:country_code)
end

Instance Method Details

#countryObject



11
12
13
# File 'app/models/country_shipping_zone.rb', line 11

def country
  Carmen::Country.coded(country_code)
end