Class: Upcoming::Country
- Inherits:
-
Object
- Object
- Upcoming::Country
- Includes:
- Defaults
- Defined in:
- lib/upcoming/country.rb
Class Method Summary collapse
-
.info(country_id) ⇒ Object
country_id
(Required) The country_id number of the country to look within.
Methods included from Defaults
Class Method Details
.info(country_id) ⇒ Object
country_id
(Required) The country_id number of the country to look within. Country ID’s are referred to within other API methods, such as metro.getStateList and state.getInfo. To run getInfo on multiple countries, simply pass an array or a comma-separated list of country_id numbers.
8 9 10 11 |
# File 'lib/upcoming/country.rb', line 8 def self.info(country_id) country_id = country_id.join(',') if country_id.is_a?(Array) Mash.new(self.get('/', :query => {:method => 'country.getInfo', :country_id => country_id}.merge(Upcoming.))).rsp.country end |