Class: Twitter::Trends

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

Class Method Summary collapse

Class Method Details

.current(options = {}) ⇒ Object

:exclude => ‘hashtags’ to exclude hashtags



8
9
10
# File 'lib/twitter/trends.rb', line 8

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



14
15
16
# File 'lib/twitter/trends.rb', line 14

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

.weekly(options = {}) ⇒ Object

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



20
21
22
# File 'lib/twitter/trends.rb', line 20

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