Class: Pikuri::Tool::Scraper::Simple::Fetched
- Inherits:
-
Data
- Object
- Data
- Pikuri::Tool::Scraper::Simple::Fetched
- Defined in:
- lib/pikuri/tool/scraper/simple.rb
Overview
Result of a successful fetch: the response body, the normalized content-type (lower-cased, with any ; charset=… parameters stripped), and the final URL after redirects. The final URL is kept so future scrapers can resolve relative links against the actual landing page rather than the originally requested one.
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#content_type ⇒ Object
readonly
Returns the value of attribute content_type.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body
57 58 59 |
# File 'lib/pikuri/tool/scraper/simple.rb', line 57 def body @body end |
#content_type ⇒ Object (readonly)
Returns the value of attribute content_type
57 58 59 |
# File 'lib/pikuri/tool/scraper/simple.rb', line 57 def content_type @content_type end |
#url ⇒ Object (readonly)
Returns the value of attribute url
57 58 59 |
# File 'lib/pikuri/tool/scraper/simple.rb', line 57 def url @url end |