Class: Cronos::TaskInterval
Constant Summary
Constants inherited from Interval
Interval::DAYS, Interval::MONTHS
Instance Attribute Summary collapse
-
#task ⇒ Object
Returns the value of attribute task.
Attributes inherited from Interval
#day, #dow, #hour, #min, #month
Instance Method Summary collapse
-
#initialize(task) ⇒ TaskInterval
constructor
A new instance of TaskInterval.
- #to_s ⇒ Object
Methods inherited from Interval
#at, #daily, #days, #every, #hourly, #midday, #midnight, #monthly, #of, #on, #to_hash, #weekdays, #weekends, #weekly
Constructor Details
#initialize(task) ⇒ TaskInterval
Returns a new instance of TaskInterval.
392 393 394 |
# File 'lib/cronos.rb', line 392 def initialize(task) @task = task end |
Instance Attribute Details
#task ⇒ Object
Returns the value of attribute task.
390 391 392 |
# File 'lib/cronos.rb', line 390 def task @task end |
Instance Method Details
#to_s ⇒ Object
396 397 398 |
# File 'lib/cronos.rb', line 396 def to_s "#{super} #{@task}" end |