module Roda::RodaPlugins::Heartbeat::InstanceMethods

def call

If the request is for a heartbeat path, return the heartbeat response.
def call
  if env[PATH_INFO] == opts[:heartbeat_path]
    response = HEARTBEAT_RESPONSE.dup
    response[1] = Hash[response[1]]
    response
  else
    super
  end
end