Skip to content

Commit

Permalink
use Forwardable to expose the SiteStreamClient methods on Client
Browse files Browse the repository at this point in the history
  • Loading branch information
stve committed Nov 18, 2013
1 parent a7fc5cc commit 67c7e06
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/tweetstream/client.rb
Expand Up @@ -2,6 +2,7 @@
require 'eventmachine'
require 'multi_json'
require 'twitter'
require 'forwardable'

require 'tweetstream/arguments'

Expand All @@ -21,6 +22,7 @@ module TweetStream
# For information about a daemonized TweetStream client,
# view the TweetStream::Daemon class.
class Client
extend Forwardable

OPTION_CALLBACKS = [:delete,
:scrub_geo,
Expand All @@ -42,6 +44,8 @@ class Client
attr_accessor :options
attr_reader :control_uri, :control, :stream

def_delegators :@control, :add_user, :remove_user, :info, :friends_ids

# Creates a new API
def initialize(options={})
self.options = options
Expand Down

0 comments on commit 67c7e06

Please sign in to comment.