Sha256: c0f231852ff41ebf959b11168d41f761f6eda83cb202396b8fb844832ea437e1

Contents?: true

Size: 707 Bytes

Versions: 2

Compression:

Stored size: 707 Bytes

Contents

require 'tweetstream/configuration'
require 'tweetstream/client'
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

2 entries across 2 versions & 1 rubygems

Version Path
tweetstream-2.0.1 lib/tweetstream.rb
tweetstream-2.0.0 lib/tweetstream.rb