Module Rufus::Scheduler::LegacyMethods

  1. lib/rufus/sc/scheduler.rb

Legacy from the previous version of Rufus-Scheduler.

Consider all methods here as ‘deprecated’.

Public instance methods

at_job_count ()
[show source]
    # File lib/rufus/sc/scheduler.rb, line 70
70:     def at_job_count
71:       @jobs.select(:at).size +
72:       @jobs.select(:in).size
73:     end
cron_job_count ()
[show source]
    # File lib/rufus/sc/scheduler.rb, line 77
77:     def cron_job_count
78:       @cron_jobs.size
79:     end
every_job_count ()
[show source]
    # File lib/rufus/sc/scheduler.rb, line 74
74:     def every_job_count
75:       @jobs.select(:every).size
76:     end
find_jobs (tag=nil)
[show source]
    # File lib/rufus/sc/scheduler.rb, line 67
67:     def find_jobs (tag=nil)
68:       tag ? find_by_tag(tag) : all_jobs.values
69:     end
pending_job_count ()
[show source]
    # File lib/rufus/sc/scheduler.rb, line 80
80:     def pending_job_count
81:       @jobs.size
82:     end
precision ()
[show source]
    # File lib/rufus/sc/scheduler.rb, line 83
83:     def precision
84:       @frequency
85:     end