Module: CouchScheduler::ClassMethods

Defined in:
lib/couch_scheduler/couch_scheduler.rb

Instance Method Summary collapse

Instance Method Details

#count_within_scheduleObject



38
39
40
# File 'lib/couch_scheduler/couch_scheduler.rb', line 38

def count_within_schedule
  count_within_couch_schedule.key(Time.now.to_date)
end

#count_within_schedule!Object



30
31
32
# File 'lib/couch_scheduler/couch_scheduler.rb', line 30

def count_within_schedule!
  count_within_schedule.get!
end

#map_within_scheduleObject



34
35
36
# File 'lib/couch_scheduler/couch_scheduler.rb', line 34

def map_within_schedule
  map_within_couch_schedule.key(Time.now.to_date)
end

#map_within_schedule!Object



26
27
28
# File 'lib/couch_scheduler/couch_scheduler.rb', line 26

def map_within_schedule!
  map_within_schedule.get!
end