Sha256: 162b7a3571c2cf15e5e788b6917f232c995a7f26f6a38098175a3e26b71a2378

Contents?: true

Size: 440 Bytes

Versions: 10

Compression:

Stored size: 440 Bytes

Contents

class PetroleumAdministrationForDefenseDistrict < ActiveRecord::Base
  self.primary_key = "code"
  self.table_name = :petroleum_districts
  
  def name
    str = "PAD District #{district_code} (#{district_name})"
    str << " Subdistrict #{district_code}#{subdistrict_code} (#{subdistrict_name})" if subdistrict_code
    str
  end
  
  col :code
  col :district_code
  col :district_name
  col :subdistrict_code
  col :subdistrict_name
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
earth-0.11.20 lib/earth/locality/petroleum_administration_for_defense_district.rb
earth-0.11.19 lib/earth/locality/petroleum_administration_for_defense_district.rb
earth-0.11.18 lib/earth/locality/petroleum_administration_for_defense_district.rb
earth-0.11.17 lib/earth/locality/petroleum_administration_for_defense_district.rb
earth-0.11.16 lib/earth/locality/petroleum_administration_for_defense_district.rb
earth-0.11.15 lib/earth/locality/petroleum_administration_for_defense_district.rb
earth-0.11.14 lib/earth/locality/petroleum_administration_for_defense_district.rb
earth-0.11.13 lib/earth/locality/petroleum_administration_for_defense_district.rb
earth-0.11.12 lib/earth/locality/petroleum_administration_for_defense_district.rb
earth-0.11.11 lib/earth/locality/petroleum_administration_for_defense_district.rb