class Healthcheck::Check

Attributes

block[RW]
name[RW]

Public Class Methods

new(name, block) click to toggle source
# File lib/healthcheck/check.rb, line 7
def initialize(name, block)
  @name = name
  @block = block
end

Public Instance Methods

execute!() click to toggle source
# File lib/healthcheck/check.rb, line 12
def execute!
  block.call
end