Class: StatusCat::Checkers::Profilesio
- Defined in:
- lib/status_cat/checkers/profilesio.rb
Constant Summary
Constants inherited from Base
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize ⇒ Profilesio
constructor
A new instance of Profilesio.
Methods inherited from Base
Constructor Details
#initialize ⇒ Profilesio
Returns a new instance of Profilesio.
7 8 9 10 11 12 13 |
# File 'lib/status_cat/checkers/profilesio.rb', line 7 def initialize @value = api_key @status = fail_on_exception do response = ::HTTParty.get('https://profiles.io/record/register') response.code == 200 ? nil : 'fail' end end |