Class: WorldDb::Model::Country

Inherits:
Object
  • Object
show all
Defined in:
lib/worlddb/compat/country.rb

Instance Method Summary collapse

Instance Method Details

#by_titleObject

def title() name; end

def title=(value) self.name = value; end


16
# File 'lib/worlddb/compat/country.rb', line 16

scope :by_title, ->{ order( 'name asc' ) }

#iso2Object



18
# File 'lib/worlddb/compat/country.rb', line 18

def iso2()       alpha2;              end

#iso2=(value) ⇒ Object



19
# File 'lib/worlddb/compat/country.rb', line 19

def iso2=(value) self.alpha2 = value; end

#iso3Object



21
# File 'lib/worlddb/compat/country.rb', line 21

def iso3()       alpha3;              end

#iso3=(value) ⇒ Object



22
# File 'lib/worlddb/compat/country.rb', line 22

def iso3=(value) self.alpha3 = value; end

#title_w_synonyms(opts = {}) ⇒ Object

def synonyms() alt_names; end

def synonyms=(value) self.alt_names = value; end


28
# File 'lib/worlddb/compat/country.rb', line 28

def title_w_synonyms( opts={} )  all_names( opts );  end