Class: WorldDb::Model::City
- Inherits:
-
Object
- Object
- WorldDb::Model::City
- Defined in:
- lib/worlddb/compat/city.rb
Overview
collect depreciated or methods for future removal here
- keep for now for commpatibility (for old code)
Instance Method Summary collapse
-
#by_title ⇒ Object
def title() name; end def title=(value) self.name = value; end.
-
#title_w_synonyms(opts = {}) ⇒ Object
def synonyms() alt_names; end def synonyms=(value) self.alt_names = value; end.
Instance Method Details
#by_title ⇒ Object
def title() name; end
def title=(value) self.name = value; end
15 |
# File 'lib/worlddb/compat/city.rb', line 15 scope :by_title, ->{ order( 'name asc' ) } |
#title_w_synonyms(opts = {}) ⇒ Object
def synonyms() alt_names; end
def synonyms=(value) self.alt_names = value; end
21 |
# File 'lib/worlddb/compat/city.rb', line 21 def title_w_synonyms( opts={} ) all_names( opts ); end |