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.



75
76
77
# File 'lib/lazylead/schedule.rb', line 75

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

Instance Method Details

#joinObject



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

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

#psObject



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

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

#register(task) ⇒ Object



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

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