Class: Procrastinator::Test::MockTaskWithData

Inherits:
Object
  • Object
show all
Defined in:
lib/procrastinator/test/mocks.rb

Overview

Testing mock Task class that requires a data packet

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#containerObject

Returns the value of attribute container.



39
40
41
# File 'lib/procrastinator/test/mocks.rb', line 39

def container
  @container
end

#dataObject

Returns the value of attribute data.



39
40
41
# File 'lib/procrastinator/test/mocks.rb', line 39

def data
  @data
end

#loggerObject

Returns the value of attribute logger.



39
40
41
# File 'lib/procrastinator/test/mocks.rb', line 39

def logger
  @logger
end

#schedulerObject

Returns the value of attribute scheduler.



39
40
41
# File 'lib/procrastinator/test/mocks.rb', line 39

def scheduler
  @scheduler
end

Instance Method Details

#runObject

Records that the mock task was run.



42
43
44
# File 'lib/procrastinator/test/mocks.rb', line 42

def run
   @run = true
end

#run?Boolean



47
48
49
# File 'lib/procrastinator/test/mocks.rb', line 47

def run?
   @run
end