Class: Twitter::Trends

Inherits:
Object
  • Object
show all
Includes:
HTTParty
Defined in:
lib/twitter/trends.rb

Class Method Summary collapse

Class Method Details

.available(query = {}) ⇒ Object



26
27
28
# File 'lib/twitter/trends.rb', line 26

def self.available(query={})
  LocalTrends.available(query)
end

.current(options = {}) ⇒ Object

:exclude => ‘hashtags’ to exclude hashtags



10
11
12
# File 'lib/twitter/trends.rb', line 10

def self.current(options={})
  mashup(get("/current.json", :query => options))
end

.daily(options = {}) ⇒ Object

:exclude => ‘hashtags’ to exclude hashtags :date => yyyy-mm-dd for specific date



16
17
18
# File 'lib/twitter/trends.rb', line 16

def self.daily(options={})
  mashup(get("/daily.json", :query => options))
end

.for_location(woeid) ⇒ Object



30
31
32
# File 'lib/twitter/trends.rb', line 30

def self.for_location(woeid)
  LocalTrends.for_location(woeid)
end

.weekly(options = {}) ⇒ Object

:exclude => ‘hashtags’ to exclude hashtags :date => yyyy-mm-dd for specific date



22
23
24
# File 'lib/twitter/trends.rb', line 22

def self.weekly(options={})
  mashup(get("/weekly.json", :query => options))
end