Class: SnowmanIO::Loop::Checks

Inherits:
Object
  • Object
show all
Includes:
Celluloid
Defined in:
lib/snowman-io/loop/checks.rb

Instance Method Summary collapse

Constructor Details

#initializeChecks

Returns a new instance of Checks.



9
10
11
# File 'lib/snowman-io/loop/checks.rb', line 9

def initialize
  after(1) { tick }
end

Instance Method Details

#tickObject



13
14
15
16
17
18
# File 'lib/snowman-io/loop/checks.rb', line 13

def tick
  App.time "Checks Performing Time" do
    ChecksPerform.perform
  end
  after(3) { tick }
end