Class: WorldDb::Model::Muni

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

Overview

ADM3/ADM4

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



67
68
69
# File 'lib/worlddb/models/state.rb', line 67

def country_id  # return country_id via top-level (e.g. adm1) state
  state.country_id
end

#place_kindObject



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

def place_kind() 'MUNI'; end