Class: PetroleumAdministrationForDefenseDistrict

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/earth/locality/petroleum_administration_for_defense_district.rb

Instance Method Summary collapse

Instance Method Details

#nameObject



8
9
10
11
12
# File 'lib/earth/locality/petroleum_administration_for_defense_district.rb', line 8

def name
  str = "PAD District #{district_code} (#{district_name})"
  str << " Subdistrict #{district_code}#{subdistrict_code} (#{subdistrict_name})" if subdistrict_code
  str
end