Class: Pikuri::Tool::Scraper::Fetched

Inherits:
Data
  • Object
show all
Defined in:
lib/pikuri/tool/scraper.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.

Instance Attribute Summary collapse

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body

Returns:

  • (Object)

    the current value of body



66
67
68
# File 'lib/pikuri/tool/scraper.rb', line 66

def body
  @body
end

#content_typeObject (readonly)

Returns the value of attribute content_type

Returns:

  • (Object)

    the current value of content_type



66
67
68
# File 'lib/pikuri/tool/scraper.rb', line 66

def content_type
  @content_type
end

#urlObject (readonly)

Returns the value of attribute url

Returns:

  • (Object)

    the current value of url



66
67
68
# File 'lib/pikuri/tool/scraper.rb', line 66

def url
  @url
end