Parent

Included Modules

Files

Twitter::Trends

Public Class Methods

api_endpoint() click to toggle source
    # File lib/twitter/trends.rb, line 8
 8:     def self.api_endpoint
 9:       @api_endpoint ||= "search.twitter.com/trends"
10:     end
api_endpoint=(value) click to toggle source
    # File lib/twitter/trends.rb, line 12
12:     def self.api_endpoint=(value)
13:       @api_endpoint = value
14:     end
available(query={}) click to toggle source
    # File lib/twitter/trends.rb, line 33
33:     def self.available(query={})
34:       #checking for api_endpoint in local_trends
35:       LocalTrends.available(query)
36:     end
current(options={}) click to toggle source

:exclude => ‘hashtags’ to exclude hashtags

    # File lib/twitter/trends.rb, line 17
17:     def self.current(options={})
18:       get("/current.json", :query => options)
19:     end
daily(options={}) click to toggle source

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

    # File lib/twitter/trends.rb, line 23
23:     def self.daily(options={})
24:       get("/daily.json", :query => options)
25:     end
for_location(woeid,options={}) click to toggle source
    # File lib/twitter/trends.rb, line 38
38:     def self.for_location(woeid,options={})
39:       #checking for api_endpoint in local_trends 
40:       LocalTrends.for_location(woeid,options)
41:     end
weekly(options={}) click to toggle source

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

    # File lib/twitter/trends.rb, line 29
29:     def self.weekly(options={})
30:       get("/weekly.json", :query => options)
31:     end

Private Class Methods

get(*args) click to toggle source
    # File lib/twitter/trends.rb, line 45
45:     def self.get(*args)
46:       base_uri api_endpoint
47:       mashup(super)
48:     end
mashup(response) click to toggle source
    # File lib/twitter/trends.rb, line 50
50:     def self.mashup(response)
51:       response["trends"].values.flatten.map{|t| Twitter.mash(t)}
52:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.