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.
4 5 6 7 8 9 10 |
# File 'lib/status_cat/checkers/profilesio.rb', line 4 def initialize @value = ENV['PROFILESIO_KEY'] @status = fail_on_exception do response = ::HTTParty.get('https://profiles.io/record/register') response.code == 200 ? nil : 'fail' end end |