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, 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

#cronObject (readonly)

Returns the value of attribute cron.



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

def cron
  @cron
end

#dataObject (readonly)

Returns the value of attribute data.



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

def data
  @data
end

#delayObject (readonly)

Returns the value of attribute delay.



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

def delay
  @delay
end

#idObject (readonly)

Returns the value of attribute id.



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

def id
  @id
end

#timeObject (readonly)

Returns the value of attribute time.



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

def time
  @time
end

#timezoneObject (readonly)

Returns the value of attribute timezone.



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

def timezone
  @timezone
end