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.
-
#timezone ⇒ Object
readonly
Returns the value of attribute timezone.
Instance Method Summary collapse
-
#initialize(id, time, cron, delay, data, timezone = nil) ⇒ Task
constructor
A new instance of Task.
Constructor Details
#initialize(id, time, cron, delay, data, timezone = nil) ⇒ Task
Returns a new instance of Task.
6 7 8 9 10 11 12 13 |
# File 'lib/perfectsched/backend.rb', line 6 def initialize(id, time, cron, delay, data, timezone=nil) @id = id @time = time @cron = cron @delay = delay @data = data @timezone = timezone end |
Instance Attribute Details
#cron ⇒ Object (readonly)
Returns the value of attribute cron.
15 16 17 |
# File 'lib/perfectsched/backend.rb', line 15 def cron @cron end |
#data ⇒ Object (readonly)
Returns the value of attribute data.
15 16 17 |
# File 'lib/perfectsched/backend.rb', line 15 def data @data end |
#delay ⇒ Object (readonly)
Returns the value of attribute delay.
15 16 17 |
# File 'lib/perfectsched/backend.rb', line 15 def delay @delay end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
15 16 17 |
# File 'lib/perfectsched/backend.rb', line 15 def id @id end |
#time ⇒ Object (readonly)
Returns the value of attribute time.
15 16 17 |
# File 'lib/perfectsched/backend.rb', line 15 def time @time end |
#timezone ⇒ Object (readonly)
Returns the value of attribute timezone.
15 16 17 |
# File 'lib/perfectsched/backend.rb', line 15 def timezone @timezone end |