Class: PetroleumAdministrationForDefenseDistrict
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- PetroleumAdministrationForDefenseDistrict
- Defined in:
- lib/earth/locality/petroleum_administration_for_defense_district.rb
Instance Method Summary collapse
Instance Method Details
#name ⇒ Object
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 |