class StatusCat::Checkers::SendHub
Public Class Methods
new()
click to toggle source
# File lib/status_cat/checkers/send_hub.rb, line 8 def initialize return if gem_missing?('ruby-sendhub', defined?(::SendHub)) @value = number @status = fail_on_exception do send_hub = ::SendHub.new(api_key, number) send_hub.get_contacts ? nil : 'fail' end end