lib/bird_grinder/client.rb in birdgrinder-0.1.1.1 vs lib/bird_grinder/client.rb in birdgrinder-0.1.2
- old
+ new
@@ -36,10 +36,11 @@
end
# Forwards a given message type (with options) to each handler,
# storing the current id if changed.
def receive_message(type, options = BirdGrinder::Nash.new)
+ options = options.to_nash if options.respond_to?(:to_nash)
logger.debug "receiving message: #{type.inspect} - #{options.id? ? options.id : 'unknown id'}"
dispatch(type.to_sym, options)
update_stored_id_for(type, options.id) if options.id?
end
@@ -55,9 +56,16 @@
# Searches for a given query
#
# @see BirdGrinder::Tweeter#search
def search(q, opts = {})
@tweeter.search(q, opts)
+ end
+
+ # Returns the streaming api instance
+ #
+ # @see BirdGrinder::Tweeter#streaming
+ def streaming
+ @tweeter.streaming
end
# Tweets some text as the current user
#
# @see BirdGrinder::Tweeter#tweet
\ No newline at end of file