class MonitorPage::StatusCheck
Attributes
label[RW]
Public Class Methods
create_check(label, &block)
click to toggle source
# File lib/monitor_page/engine.rb, line 41 def self.create_check(label, &block) new(label).create_check(&block) end
new(label)
click to toggle source
# File lib/monitor_page/engine.rb, line 37 def initialize(label) @label = label end
Public Instance Methods
create_check(&block)
click to toggle source
# File lib/monitor_page/engine.rb, line 45 def create_check(&block) instance_eval(&block) end
error(message)
click to toggle source
# File lib/monitor_page/engine.rb, line 53 def error(message) return { label: label, result: false, message: message } end
pass()
click to toggle source
# File lib/monitor_page/engine.rb, line 49 def pass return { label: label, result: true } end