Class: Twitter::Trends
- Inherits:
-
Object
- Object
- Twitter::Trends
- Includes:
- HTTParty
- Defined in:
- lib/twitter/trends.rb
Class Method Summary collapse
- .available(query = {}) ⇒ Object
-
.current(options = {}) ⇒ Object
:exclude => ‘hashtags’ to exclude hashtags.
-
.daily(options = {}) ⇒ Object
:exclude => ‘hashtags’ to exclude hashtags :date => yyyy-mm-dd for specific date.
- .for_location(woeid) ⇒ Object
-
.weekly(options = {}) ⇒ Object
:exclude => ‘hashtags’ to exclude hashtags :date => yyyy-mm-dd for specific date.
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(={}) mashup(get("/current.json", :query => )) 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(={}) mashup(get("/daily.json", :query => )) 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(={}) mashup(get("/weekly.json", :query => )) end |