Class: Rakumarket::InternationalDeliveryCountryList

Inherits:
Object
  • Object
show all
Defined in:
lib/rakumarket/models.rb

Class Method Summary collapse

Class Method Details

.parse(val) ⇒ Object



38
39
40
# File 'lib/rakumarket/models.rb', line 38

def self.parse(val)
  val.split('/').map{|a| values[a] || a} if val.respond_to?(:split)
end

.valuesObject



37
# File 'lib/rakumarket/models.rb', line 37

def self.values; INTERNATIONAL_DELIVERY_AREA_NAMES end