Sha256: 8436b2a180d20b760805fece3e70d3d746f43d00979d1cda0837f96ee3da7a18
Contents?: true
Size: 511 Bytes
Versions: 3
Compression:
Stored size: 511 Bytes
Contents
module Twitterland class TweetBlocker include HTTParty base_uri 'http://tweetblocker.com/api' format :json def self.user(username) @result ||= Mash.new(self.get("/username/#{username}.json")).user end def self.report_spam(username) status = Mash.new(self.get("/spam/#{username}.json")) status['error'].blank? ? status : status['error'] end def self.rate_limit @rate_limit = Mash.new(self.get("/user/rate_limit_status.json")) end end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
squeejee-twitterland-0.1.1 | lib/twitterland/tweet_blocker.rb |
twitterland-0.1.0 | lib/twitterland/tweet_blocker.rb |
twitterland-0.1.1 | lib/twitterland/tweet_blocker.rb |