lib/powertrack/streaming/stream.rb in powertrack-1.3.0 vs lib/powertrack/streaming/stream.rb in powertrack-1.3.1
- old
+ new
@@ -69,9 +69,14 @@
@replay = !!@options[:replay]
@client_id = @options[:client_id]
@v2 = !!@options[:v2]
end
+ # Returns true if the stream uses PowerTrack v2
+ def v2?
+ @v2
+ end
+
# Adds many rules to your PowerTrack stream’s ruleset.
#
# <tt>POST /rules</tt>
#
# See http://support.gnip.com/apis/powertrack/api_reference.html#AddRules