Class: Twitter::LocalTrends
- Inherits:
-
Object
- Object
- Twitter::LocalTrends
- Includes:
- HTTParty
- Defined in:
- lib/twitter/local_trends.rb
Class Method Summary collapse
Class Method Details
.available(query = {}) ⇒ Object
7 8 9 10 11 |
# File 'lib/twitter/local_trends.rb', line 7 def self.available(query={}) before_test(query) query.delete(:api_endpoint) get("/available.json", :query => query).map{|location| Twitter.mash(location)} end |
.for_location(woeid, options = {}) ⇒ Object
13 14 15 16 |
# File 'lib/twitter/local_trends.rb', line 13 def self.for_location(woeid, = {}) before_test() get("/#{woeid}.json").map{|location| Twitter.mash(location)} end |