Class: WorldDb::Model::State

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

Overview

ADM1

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

#place_kindObject



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

def place_kind() 'STAT'; end

#state_idObject

return top-level (e.g. adm1) state_id



18
19
20
# File 'lib/worlddb/models/state.rb', line 18

def state_id  # return top-level (e.g. adm1) state_id
  id
end