class LittleMonster::RSpec::JobHelper::Result
Public Class Methods
new(job)
click to toggle source
# File lib/little_monster/rspec/helpers/job_helper.rb, line 4 def initialize(job) @job = job begin job.run @retried = false rescue LittleMonster::JobRetryError @retried = true end end
Public Instance Methods
data()
click to toggle source
# File lib/little_monster/rspec/helpers/job_helper.rb, line 31 def data @job.data end
instance()
click to toggle source
# File lib/little_monster/rspec/helpers/job_helper.rb, line 15 def instance @job end
retried?()
click to toggle source
# File lib/little_monster/rspec/helpers/job_helper.rb, line 23 def retried? @retried end
retries()
click to toggle source
# File lib/little_monster/rspec/helpers/job_helper.rb, line 27 def retries @job.instance_variable_get '@retries' end
runned_tasks()
click to toggle source
# File lib/little_monster/rspec/helpers/job_helper.rb, line 35 def runned_tasks @job.instance_variable_get '@runned_tasks' end
status()
click to toggle source
# File lib/little_monster/rspec/helpers/job_helper.rb, line 19 def status @job.status end