lib/spidr/page.rb in spidr-0.4.1 vs lib/spidr/page.rb in spidr-0.5.0

- old
+ new

@@ -1,19 +1,15 @@ -require 'spidr/headers' -require 'spidr/body' -require 'spidr/links' +require 'spidr/page/headers' +require 'spidr/page/body' +require 'spidr/page/links' module Spidr # # Represents a requested page from a website. # class Page - include Headers - include Body - include Links - # URL of the page attr_reader :url # HTTP Response attr_reader :response @@ -25,17 +21,17 @@ # Creates a new Page object. # # @param [URI::HTTP] url # The URL of the page. # - # @param [Net::HTTP::Response] response + # @param [Net::HTTPResponse] response # The response from the request for the page. # def initialize(url,response) - @url = url + @url = url @response = response - @headers = response.to_hash - @doc = nil + @headers = response.to_hash + @doc = nil end # # The meta-redirect links of the page. #