Class: PerfectSched::Task

Inherits:
Object
  • Object
show all
Defined in:
lib/perfectsched/backend.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#cronObject (readonly)

Returns the value of attribute cron.



14
15
16
# File 'lib/perfectsched/backend.rb', line 14

def cron
  @cron
end

#dataObject (readonly)

Returns the value of attribute data.



14
15
16
# File 'lib/perfectsched/backend.rb', line 14

def data
  @data
end

#delayObject (readonly)

Returns the value of attribute delay.



14
15
16
# File 'lib/perfectsched/backend.rb', line 14

def delay
  @delay
end

#idObject (readonly)

Returns the value of attribute id.



14
15
16
# File 'lib/perfectsched/backend.rb', line 14

def id
  @id
end

#timeObject (readonly)

Returns the value of attribute time.



14
15
16
# File 'lib/perfectsched/backend.rb', line 14

def time
  @time
end