Class: Twitterland::TweetMeme::Comments

Inherits:
Object
  • Object
show all
Includes:
HTTParty
Defined in:
lib/twitterland/tweet_meme/comments.rb

Class Method Summary collapse

Class Method Details

.firehose(options = {}) ⇒ Object

Returns the most recent comments posted on TweetMeme, along with information on which URL they were posted on.

Twitterland::TweetMeme::Comments.firehose


11
12
13
# File 'lib/twitterland/tweet_meme/comments.rb', line 11

def self.firehose(options={})
  Hashie::Mash.new get("/firehose.json")
end

.get_url(url) ⇒ Object

Returns comments posted on a particular URL

Twitterland::TweetMeme.get_url('http://squeejee.com')


18
19
20
# File 'lib/twitterland/tweet_meme/comments.rb', line 18

def self.get_url(url)
  Hashie::Mash.new get("/get_url.json", :query => {:url => url})
end