Sha256: 89e5c493263595ccb0622a16f58bd586f22509eb894f3f29a0c51320a04d8568
Contents?: true
Size: 1.13 KB
Versions: 1
Compression:
Stored size: 1.13 KB
Contents
require 'tweetstream/configuration' require 'tweetstream/client' require 'tweetstream/hash' require 'tweetstream/status' require 'tweetstream/user' require 'tweetstream/daemon' module TweetStream extend Configuration class Terminated < ::StandardError; end class Error < ::StandardError; end class ConnectionError < TweetStream::Error; end # A ReconnectError is raised when the maximum number of retries has # failed to re-establish a connection. class ReconnectError < StandardError attr_accessor :timeout, :retries def initialize(timeout, retries) self.timeout = timeout self.retries = retries super("Failed to reconnect after #{retries} tries.") end end # Alias for TweetStream::Client.new # # @return [TweetStream::Client] def self.client(options={}) TweetStream::Client.new(options) end # Delegate to TweetStream::Client def self.method_missing(method, *args, &block) return super unless client.respond_to?(method) client.send(method, *args, &block) end # Delegate to TweetStream::Client def self.respond_to?(method) client.respond_to?(method) || super end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tweetstream-1.1.0.rc1 | lib/tweetstream.rb |