Class: PerfectSched::Task
- Inherits:
-
Object
- Object
- PerfectSched::Task
- Defined in:
- lib/perfectsched/backend.rb
Instance Attribute Summary collapse
-
#cron ⇒ Object
readonly
Returns the value of attribute cron.
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#delay ⇒ Object
readonly
Returns the value of attribute delay.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#time ⇒ Object
readonly
Returns the value of attribute time.
Instance Method Summary collapse
-
#initialize(id, time, cron, delay, data) ⇒ Task
constructor
A new instance of Task.
Constructor Details
#initialize(id, time, cron, delay, data) ⇒ Task
Returns a new instance of Task.
6 7 8 9 10 11 12 |
# File 'lib/perfectsched/backend.rb', line 6 def initialize(id, time, cron, delay, data) @id = id @time = time @cron = cron @delay = delay @data = data end |
Instance Attribute Details
#cron ⇒ Object (readonly)
Returns the value of attribute cron.
14 15 16 |
# File 'lib/perfectsched/backend.rb', line 14 def cron @cron end |
#data ⇒ Object (readonly)
Returns the value of attribute data.
14 15 16 |
# File 'lib/perfectsched/backend.rb', line 14 def data @data end |
#delay ⇒ Object (readonly)
Returns the value of attribute delay.
14 15 16 |
# File 'lib/perfectsched/backend.rb', line 14 def delay @delay end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
14 15 16 |
# File 'lib/perfectsched/backend.rb', line 14 def id @id end |
#time ⇒ Object (readonly)
Returns the value of attribute time.
14 15 16 |
# File 'lib/perfectsched/backend.rb', line 14 def time @time end |