Class: Aquatone::Detectors::Freshdesk
- Inherits:
-
Aquatone::Detector
- Object
- Aquatone::Detector
- Aquatone::Detectors::Freshdesk
- Defined in:
- lib/aquatone/detectors/freshdesk.rb
Constant Summary collapse
- CNAME_VALUE =
".freshdesk.com".freeze
- RESPONSE_FINGERPRINT =
"You can claim it now at".freeze
Instance Attribute Summary
Attributes inherited from Aquatone::Detector
Instance Method Summary collapse
Methods inherited from Aquatone::Detector
descendants, #initialize, meta, meta=, #positive?, sluggified_name
Constructor Details
This class inherits a constructor from Aquatone::Detector
Instance Method Details
#run ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/aquatone/detectors/freshdesk.rb', line 14 def run return false unless cname_resource? if resource_value.end_with?(CNAME_VALUE) return get_request("http://#{host}/").body.include?(RESPONSE_FINGERPRINT) end false end |