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 = 123 in DayEvents(‘active’, 2012, 10, 23)

Instance Method Summary collapse

Instance Method Details

#includes?(uuid) ⇒ Boolean

Returns:

  • (Boolean)

152
153
154
155
156
157
158
# File 'lib/bit_analytics.rb', line 152

def includes?(uuid)
  if @redis.getbit(self.redis_key, uuid) == 1
    true
  else
    false
  end
end