Class: MoySklad::Model::Country
- Inherits:
-
Client::Base
- Object
- ActiveResource::Base
- Client::Base
- MoySklad::Model::Country
- Defined in:
- lib/moy_sklad/model/country.rb
Class Method Summary collapse
Methods inherited from Client::Base
#applicable?, collection_name, #create, #destroy, element_path, find, new_element_path, #save
Methods inherited from ActiveResource::Base
Class Method Details
.uuid_from_code(code) ⇒ Object
6 7 8 9 |
# File 'lib/moy_sklad/model/country.rb', line 6 def uuid_from_code(code) @_country_cache ||= YAML.load_file(File.join(File.dirname(__FILE__), 'data', 'country_codes.yml')) @_country_cache[code.to_s] end |