Class: WorldDb::Model::Part
- Defined in:
- lib/worlddb/models/state.rb,
lib/worlddb/models/forward.rb
Overview
x /ADM2
Instance Method Summary collapse
-
#country_id ⇒ Object
return country_id via top-level (e.g. adm1) state; – used for auto-creating cities.
-
#place_kind ⇒ Object
use place_kind_of_code ??.
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_id ⇒ Object
return country_id via top-level (e.g. adm1) state; – used for auto-creating cities
38 39 40 |
# File 'lib/worlddb/models/state.rb', line 38 def country_id # return country_id via top-level (e.g. adm1) state; -- used for auto-creating cities state.country_id end |
#place_kind ⇒ Object
use place_kind_of_code ??
34 35 36 |
# File 'lib/worlddb/models/state.rb', line 34 def place_kind # use place_kind_of_code ?? 'ADM2' # note: for now assumes always level 2 end |