Class: Delayed::Master::Job

Inherits:
Object
  • Object
show all
Defined in:
lib/delayed/master/job.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attrs = {}) ⇒ Job

Returns a new instance of Job.



8
9
10
11
12
# File 'lib/delayed/master/job.rb', line 8

def initialize(attrs = {})
  attrs.each do |k, v|
    send("#{k}=", v)
  end
end

Instance Attribute Details

#databaseObject

Returns the value of attribute database.



6
7
8
# File 'lib/delayed/master/job.rb', line 6

def database
  @database
end

#idObject

Returns the value of attribute id.



6
7
8
# File 'lib/delayed/master/job.rb', line 6

def id
  @id
end

#run_atObject

Returns the value of attribute run_at.



6
7
8
# File 'lib/delayed/master/job.rb', line 6

def run_at
  @run_at
end

#settingObject

Returns the value of attribute setting.



6
7
8
# File 'lib/delayed/master/job.rb', line 6

def setting
  @setting
end