Class: WorldDb::Model::Part

Inherits:
StateBase
  • Object
show all
Defined in:
lib/worlddb/models/state.rb,
lib/worlddb/models/forward.rb

Overview

x /ADM2

Instance Method Summary collapse

Methods inherited from StateBase

#all_names, create_or_update_from_attribs, create_or_update_from_values, #on_create, #on_update, parse, #synonyms, #synonyms=, #title, #title=

Methods included from TextUtils::ValueHelper

#is_state?, #match_city, #match_country, #match_metro, #match_metro_flag, #match_metro_pop, #match_state_for_country, #match_supra, #match_supra_flag

Instance Method Details

#country_idObject

return country_id via top-level (e.g. adm1) state; – used for auto-creating cities



34
35
36
# File 'lib/worlddb/models/state.rb', line 34

def country_id  # return country_id via top-level (e.g. adm1) state; -- used for auto-creating cities
  state.country_id
end

#place_kindObject



32
# File 'lib/worlddb/models/state.rb', line 32

def place_kind() 'PART'; end