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 |
# File 'lib/twitter/local_trends.rb', line 7 def self.available(query={}) get("/available.json", :query => query).map{|location| Twitter.mash(location)} end |
.for_location(woeid) ⇒ Object
11 12 13 |
# File 'lib/twitter/local_trends.rb', line 11 def self.for_location(woeid) get("/#{woeid}.json").map{|location| Twitter.mash(location)} end |