Sha256: 1947f4edf885c0bd33a9aff8ffd08342445a8d2fb54c693f0d1b517267ec68f5
Contents?: true
Size: 344 Bytes
Versions: 4
Compression:
Stored size: 344 Bytes
Contents
require 'rack' require 'oj' Oj.default_options = { mode: :compat } module Heartcheck module Controllers class Base def index fail NotImplementError end protected def check(who) Oj.dump(Heartcheck .send("#{who}_checks") .map(&:check)) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems