module BitAnalytics::MixinCounts
Extends with an obj.get_count that uses BITCOUNT to count all the events. Supports also length.
Public Instance Methods
get_count()
click to toggle source
# File lib/bit_analytics.rb, line 140 def get_count @redis.bitcount(@redis_key) end
length()
click to toggle source
# File lib/bit_analytics.rb, line 144 def length return get_count end