Sha256: 7869a2db5eff1ebd7f60d133bfd66c4540f860af0520205211bf9d104d878c49

Contents?: true

Size: 827 Bytes

Versions: 7

Compression:

Stored size: 827 Bytes

Contents

require 'tweetstream/configuration'
require 'tweetstream/client'
require 'tweetstream/hash'
require 'tweetstream/status'
require 'tweetstream/direct_message'
require 'tweetstream/user'
require 'tweetstream/error'
require 'tweetstream/daemon'

module TweetStream
  extend Configuration

  class << self
    # Alias for TweetStream::Client.new
    #
    # @return [TweetStream::Client]
    def new(options={})
      TweetStream::Client.new(options)
    end

    # Delegate to TweetStream::Client
    def method_missing(method, *args, &block)
      return super unless new.respond_to?(method)
      new.send(method, *args, &block)
    end

    # Delegate to TweetStream::Client
    def respond_to?(method, include_private = false)
      new.respond_to?(method, include_private) || super(method, include_private)
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
tweetstream-1.1.5 lib/tweetstream.rb
tweetstream-1.1.4 lib/tweetstream.rb
tweetstream-1.1.3 lib/tweetstream.rb
tweetstream-1.1.2 lib/tweetstream.rb
tweetstream-1.1.1 lib/tweetstream.rb
tweetstream-1.1.0 lib/tweetstream.rb
tweetstream-1.1.0.rc2 lib/tweetstream.rb