Class: Cronos::TaskInterval

Inherits:
Interval show all
Defined in:
lib/cronos.rb

Constant Summary

Constants inherited from Interval

Interval::DAYS, Interval::MONTHS

Instance Attribute Summary collapse

Attributes inherited from Interval

#day, #dow, #hour, #min, #month

Instance Method Summary collapse

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

#taskObject

Returns the value of attribute task.



390
391
392
# File 'lib/cronos.rb', line 390

def task
  @task
end

Instance Method Details

#to_sObject



396
397
398
# File 'lib/cronos.rb', line 396

def to_s
  "#{super} #{@task}"
end