Sha256: a2dde84ba473b9ac0a375934fb8e3b26588746b5352058c26732fc8a2f27d097
Contents?: true
Size: 433 Bytes
Versions: 1
Compression:
Stored size: 433 Bytes
Contents
require 'iso3166_ru' require 'russianpost/operation' module RussianPost module CountryFactory def self.build(country_config, opts = {}) country_list = opts[:country_list] || Iso3166Ru proxy = country_list.find_by(iso: country_config[:id]) RussianPost::Country.new( proxy.iso.to_i, proxy.alpha2, proxy.alpha3, proxy.name, proxy.english) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
russianpost-0.7.0 | lib/russianpost/country_factory.rb |