Class: WeekEvents
- Inherits:
-
BitAnalytics
- Object
- BitAnalytics
- WeekEvents
- Includes:
- MixinContains, MixinCounts, MixinEventsMisc, RedisConnection
- Defined in:
- lib/bit_analytics.rb
Overview
Events for a week. Example: WeekEvents(‘active’, 2012, 48)
Constant Summary
Constants inherited from BitAnalytics
Instance Attribute Summary
Attributes inherited from BitAnalytics
Instance Method Summary collapse
-
#initialize(event_name, year, week) ⇒ WeekEvents
constructor
A new instance of WeekEvents.
Methods inherited from BitAnalytics
#_prefix_key, #bit_op_and, #bit_op_or, #bit_op_xor, #day_events, #delete_all_events, #delete_temporary_bitop_keys, #hour_events, #mark_event, #month_events, #week_events
Constructor Details
#initialize(event_name, year, week) ⇒ WeekEvents
Returns a new instance of WeekEvents.
193 194 195 |
# File 'lib/bit_analytics.rb', line 193 def initialize(event_name, year, week) @redis_key = _prefix_key(event_name,'W%s-%s' % [year, week]) end |