Class: Twitter::LocalTrends

Inherits:
Object
  • Object
show all
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,options = {})
  before_test(options)
  get("/#{woeid}.json").map{|location| Twitter.mash(location)}
end