class MiniCheck::ChecksCollection
Public Instance Methods
healthy?()
click to toggle source
# File lib/mini_check/checks_collection.rb, line 7 def healthy? all?(&:healthy?) end
register(name, &block)
click to toggle source
# File lib/mini_check/checks_collection.rb, line 15 def register name, &block push(Check.new(name, &block)) end
run()
click to toggle source
# File lib/mini_check/checks_collection.rb, line 11 def run each(&:run) end
to_hash()
click to toggle source
# File lib/mini_check/checks_collection.rb, line 3 def to_hash Hash[map { |check| [check.name, check.to_hash] }] end