Module: Counterman::TimeEvents
- Defined in:
- lib/counterman/time_events.rb
Class Method Summary collapse
-
.start(time_spans, event_name, time) ⇒ Object
Public: Helper to get all the time trackers ready.
Class Method Details
.start(time_spans, event_name, time) ⇒ Object
Public: Helper to get all the time trackers ready
event_name - The event to be tracked
date - A given Time object
12 13 14 15 16 |
# File 'lib/counterman/time_events.rb', line 12 def self.start(time_spans, event_name, time) time_spans.map do |t| t.new(event_name, time) end end |