Class: MonthEvents
- Inherits:
-
BitAnalytics
- Object
- BitAnalytics
- MonthEvents
- Includes:
- MixinContains, MixinCounts, MixinEventsMisc, RedisConnection
- Defined in:
- lib/bit_analytics.rb
Overview
Events for a month.
Example
@bit_analytics.month_events(‘active’, 2012, 10)
Constant Summary
Constants inherited from BitAnalytics
Instance Attribute Summary collapse
-
#redis_key ⇒ Object
readonly
Returns the value of attribute redis_key.
Attributes inherited from BitAnalytics
Instance Method Summary collapse
-
#initialize(event_name, year, month) ⇒ MonthEvents
constructor
A new instance of MonthEvents.
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, month) ⇒ MonthEvents
Returns a new instance of MonthEvents.
180 181 182 |
# File 'lib/bit_analytics.rb', line 180 def initialize(event_name, year, month) @redis_key = _prefix_key(event_name,'%s-%s' % [year, month]) end |
Instance Attribute Details
#redis_key ⇒ Object (readonly)
Returns the value of attribute redis_key.
178 179 180 |
# File 'lib/bit_analytics.rb', line 178 def redis_key @redis_key end |