Class: Lazylead::NoSchedule

Inherits:
Object
  • Object
show all
Defined in:
lib/lazylead/schedule.rb

Overview

Fake application schedule for unit testing purposes

Instance Method Summary collapse

Constructor Details

#initialize(log = Log.new) ⇒ NoSchedule

Returns a new instance of NoSchedule.



78
79
80
# File 'lib/lazylead/schedule.rb', line 78

def initialize(log = Log.new)
  @log = log
end

Instance Method Details

#joinObject



90
91
92
# File 'lib/lazylead/schedule.rb', line 90

def join
  @log.debug "#{self}#join"
end

#psObject



86
87
88
# File 'lib/lazylead/schedule.rb', line 86

def ps
  @log.debug "#{self}#ps"
end

#register(task) ⇒ Object



82
83
84
# File 'lib/lazylead/schedule.rb', line 82

def register(task)
  @log.debug "Task registered: #{task}"
end