Exception: CMSScanner::Error::TargetDown
- Defined in:
- lib/cms_scanner/errors/http.rb
Overview
Target Down Error
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response) ⇒ TargetDown
constructor
A new instance of TargetDown.
- #to_s ⇒ Object
Constructor Details
#initialize(response) ⇒ TargetDown
Returns a new instance of TargetDown.
9 10 11 |
# File 'lib/cms_scanner/errors/http.rb', line 9 def initialize(response) @response = response end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
7 8 9 |
# File 'lib/cms_scanner/errors/http.rb', line 7 def response @response end |
Instance Method Details
#to_s ⇒ Object
13 14 15 |
# File 'lib/cms_scanner/errors/http.rb', line 13 def to_s "The url supplied '#{response.request.url}' seems to be down (#{response.})" end |