Sha256: e760ea9f62c5256d3cd18d827733d23bdcbe7b5c6c20ccc3976a8376cc626ac1
Contents?: true
Size: 629 Bytes
Versions: 2
Compression:
Stored size: 629 Bytes
Contents
module Upcoming class Country include Upcoming::Defaults # +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. # 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.default_options))).rsp.country end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
squeejee-upcoming-events-0.0.1 | lib/upcoming/country.rb |
upcoming-events-0.0.1 | lib/upcoming/country.rb |