Module: YahooCountriesAndProvinces

Defined in:
lib/yahoo_countries_and_provinces.rb,
lib/yahoo_countries_and_provinces/version.rb,
lib/yahoo_countries_and_provinces/yahoo_country_list.rb,
lib/yahoo_countries_and_provinces/yahoo_province_list.rb

Defined Under Namespace

Classes: YahooCountryList, YahooProvinceList

Constant Summary collapse

VERSION =
"0.0.1"

Class Method Summary collapse

Class Method Details

.countries(language = "en") ⇒ Object



7
8
9
10
# File 'lib/yahoo_countries_and_provinces.rb', line 7

def self.countries(language="en")
  c = YahooCountriesAndProvinces::YahooCountryList.new
  c.countries(language)
end

.provinces(country, language = "en") ⇒ Object



12
13
14
15
# File 'lib/yahoo_countries_and_provinces.rb', line 12

def self.provinces(country, language="en")
  p = YahooCountriesAndProvinces::YahooProvinceList.new
  p.provinces(country, language)
end