Refresh

This website preview.rubydoc.info/gems/bit_analytics/0.0.1/HourEvents is currently offline. Cloudflare\'s Always Online™ shows a snapshot of this web page from the Internet Archive\'s Wayback Machine. To check for the live version, click Refresh.

Class: HourEvents

Inherits:
BitAnalytics show all
Includes:
MixinContains, MixinCounts, MixinEventsMisc, RedisConnection
Defined in:
lib/bit_analytics.rb

Overview

Events for a hour. Example: HourEvents(‘active’, 2012, 10, 23, 13)

Constant Summary

Constants inherited from BitAnalytics

BitAnalytics::VERSION

Instance Attribute Summary

Attributes inherited from BitAnalytics

#redis

Instance Method Summary collapse

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, day, hour) ⇒ HourEvents

Returns a new instance of HourEvents.



221
222
223
# File 'lib/bit_analytics.rb', line 221

def initialize(event_name, year, month, day, hour)
  @redis_key = _prefix_key(event_name,'%s-%s-%s-%s' % [year, month, day, hour])
end