Class: StatusCat::Checkers::SendHub
- Defined in:
- lib/status_cat/checkers/send_hub.rb
Constant Summary
Constants inherited from Base
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize ⇒ SendHub
constructor
A new instance of SendHub.
Methods inherited from Base
Constructor Details
#initialize ⇒ SendHub
Returns a new instance of SendHub.
8 9 10 11 12 13 14 15 16 |
# 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 |