Module: AtlasEngine::ConcernFormatter

Instance Method Summary collapse

Instance Method Details

#addressObject

Raises:

  • (NotImplementedError)


10
11
12
# File 'app/lib/atlas_engine/concern_formatter.rb', line 10

def address
  raise NotImplementedError
end

#country_nameObject



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_nameObject



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