Skip to content
Browse files

removed references to passing username/password to Client.new

  • Loading branch information...
1 parent 9dfdcec commit 7631530f73875646b83777ae15c8b14a6fcc1bf9 @stve stve committed Sep 23, 2011
Showing with 5 additions and 5 deletions.
  1. +5 −5 lib/tweetstream/client.rb
View
10 lib/tweetstream/client.rb
@@ -13,7 +13,7 @@ module TweetStream
# methods and provide a block that will perform actions on
# a yielded TweetStream::Status. For example:
#
- # TweetStream::Client.new('user','pass').track('fail') do |status|
+ # TweetStream::Client.new.track('fail') do |status|
# puts "[#{status.user.screen_name}] #{status.text}"
# end
#
@@ -113,7 +113,7 @@ def filter(query_params = {}, &block)
# Set a Proc to be run when a deletion notice is received
# from the Twitter stream. For example:
#
- # @client = TweetStream::Client.new('user','pass')
+ # @client = TweetStream::Client.new
# @client.on_delete do |status_id, user_id|
# Tweet.delete(status_id)
# end
@@ -134,7 +134,7 @@ def on_delete(&block)
# Set a Proc to be run when a rate limit notice is received
# from the Twitter stream. For example:
#
- # @client = TweetStream::Client.new('user','pass')
+ # @client = TweetStream::Client.new
# @client.on_limit do |discarded_count|
# # Make note of discarded count
# end
@@ -156,7 +156,7 @@ def on_limit(&block)
# processing of the stream. Note that TweetStream will automatically
# try to reconnect, this is for reference only. Don't panic!
#
- # @client = TweetStream::Client.new('user','pass')
+ # @client = TweetStream::Client.new
# @client.on_error do |message|
# # Make note of error message
# end
@@ -177,7 +177,7 @@ def on_error(&block)
# Set a Proc to be run when connection established.
# Called in EventMachine::Connection#post_init
#
- # @client = TweetStream::Client.new('user','pass')
+ # @client = TweetStream::Client.new
# @client.on_inited do
# puts 'Connected...'
# end

0 comments on commit 7631530

Please sign in to comment.
Something went wrong with that request. Please try again.