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.
4 5 6 7 8 9 10 |
# File 'lib/status_cat/checkers/send_hub.rb', line 4 def initialize @value = ENV[ 'SEND_HUB_NUMBER' ] @status = fail_on_exception do send_hub = ::SendHub.new( ENV[ 'SEND_HUB_API_KEY' ], ENV[ 'SEND_HUB_NUMBER' ] ) send_hub.get_contacts ? nil : 'fail' end end |