Class: Fortnox::API::Mapper::CountryString
- Inherits:
-
Object
- Object
- Fortnox::API::Mapper::CountryString
- Extended by:
- CanonicalNameSym
- Defined in:
- lib/fortnox/api/mappers/value/country_string.rb
Constant Summary collapse
- CountryMapper =
lambda do |code| next code if code.nil? || code == '' # Fortnox only supports Swedish country name for Sweden next 'Sverige' if code == 'SE' ::ISO3166::Country[code].translations['en'] end