Class: LinkChecker::Async::HTTP::Response
- Inherits:
-
Object
- Object
- LinkChecker::Async::HTTP::Response
- Defined in:
- lib/ruby-link-checker/async/http/result.rb
Overview
Wraps an Async::HTTP response to expose a code and case-insensitive
headers, similar to the other checkers' response objects.
Instance Attribute Summary collapse
-
#headers ⇒ Object
readonly
Returns the value of attribute headers.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
- #code ⇒ Object
-
#initialize(response) ⇒ Response
constructor
A new instance of Response.
Constructor Details
Instance Attribute Details
#headers ⇒ Object (readonly)
Returns the value of attribute headers.
20 21 22 |
# File 'lib/ruby-link-checker/async/http/result.rb', line 20 def headers @headers end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
20 21 22 |
# File 'lib/ruby-link-checker/async/http/result.rb', line 20 def status @status end |
Instance Method Details
#code ⇒ Object
27 28 29 |
# File 'lib/ruby-link-checker/async/http/result.rb', line 27 def code @status.to_s end |