Module: AtlasEngine::ConcernFormatter
- Extended by:
- T::Sig
- Includes:
- Kernel
- Included in:
- AddressValidation::Validators::FullAddress::InvalidZipForCountryConcernBuilder, AddressValidation::Validators::FullAddress::InvalidZipForProvinceConcernBuilder, AddressValidation::Validators::FullAddress::UnknownAddressConcernBuilder, AddressValidation::Validators::FullAddress::UnknownProvinceConcernBuilder, AddressValidation::Validators::FullAddress::UnmatchedFieldConcernBuilder
- Defined in:
- app/lib/atlas_engine/concern_formatter.rb
Instance Method Summary collapse
Instance Method Details
#address ⇒ Object
10 11 12 |
# File 'app/lib/atlas_engine/concern_formatter.rb', line 10 def address raise NotImplementedError end |
#country_name ⇒ Object
15 16 17 18 19 |
# File 'app/lib/atlas_engine/concern_formatter.rb', line 15 def country_name return "" if address.country_code.blank? country.country? && country.full_name ? country.full_name : address.country_code end |
#province_name ⇒ Object
22 23 24 25 26 |
# File 'app/lib/atlas_engine/concern_formatter.rb', line 22 def province_name return "" if address.country_code.blank? || address.province_code.blank? province.province? && province.full_name ? province.full_name : address.province_code end |