Module: BitAnalytics::MixinContains
- Defined in:
- lib/bit_analytics.rb
Overview
Makes it possible to see if an uuid has been marked.
Example
user_active_today = @bit_analytics.day_events(‘active’, 2012, 10, 23).includes?(123)
Instance Method Summary collapse
Instance Method Details
#includes?(uuid) ⇒ Boolean
153 154 155 156 157 158 159 |
# File 'lib/bit_analytics.rb', line 153 def includes?(uuid) if @redis.getbit(self.redis_key, uuid) == 1 true else false end end |