Class: WorldDb::Model::City

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

Instance Method Summary collapse

Methods inherited from CityBase

#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

#as_row(opts = {}) ⇒ Object



23
24
25
# File 'lib/worlddb/models/city.rb', line 23

def as_row( opts={} )
  CitySerializer.new( self ).as_row
end

#place_kindObject

use place_kind_of_code ??



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

def place_kind   # use place_kind_of_code ??
  'CITY'
end