Module: ISPMonitor::Checks

Defined in:
lib/isp_monitor.rb

Defined Under Namespace

Classes: BaseCheck, DownloadCheck, HealthcheckCheck, MifiCheck, PingCheck

Class Method Summary collapse

Class Method Details

.lookup(type) ⇒ Object



23
24
25
26
27
28
29
30
31
32
# File 'lib/isp_monitor.rb', line 23

def self.lookup(type)
  case type
  when :ping        then PingCheck
  when :healthcheck then HealthcheckCheck
  when :mifi        then MifiCheck
  when :download    then DownloadCheck
  else
    raise "Unkown check type: #{type}"
  end
end