Class: RDocLinkChecker::HttpStatusCodeError
- Defined in:
- lib/rdoc_link_checker.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(url, code) ⇒ HttpStatusCodeError
constructor
A new instance of HttpStatusCodeError.
- #message ⇒ Object
Constructor Details
#initialize(url, code) ⇒ HttpStatusCodeError
Returns a new instance of HttpStatusCodeError.
475 476 477 478 |
# File 'lib/rdoc_link_checker.rb', line 475 def initialize(url, code) self.url = url self.code = code end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
473 474 475 |
# File 'lib/rdoc_link_checker.rb', line 473 def code @code end |
#url ⇒ Object
Returns the value of attribute url.
473 474 475 |
# File 'lib/rdoc_link_checker.rb', line 473 def url @url end |
Instance Method Details
#message ⇒ Object
480 481 482 483 484 485 486 487 |
# File 'lib/rdoc_link_checker.rb', line 480 def <<EOT #{self.class.name}: The return code for the page was not 200: Url: #{url} Return code: #{code} EOT end |