Parent

Typhoeus::Response

Public Instance Methods

has_valid_hash?(error_404_hash, homepage_hash) click to toggle source

Compare the body hash to error_404_hash and homepage_hash returns true if they are different, false otherwise

@return [ Boolean ]

# File lib/common/hacks.rb, line 40
def has_valid_hash?(error_404_hash, homepage_hash)
  body_hash = Digest::MD5.hexdigest(self.body)

  body_hash != error_404_hash && body_hash != homepage_hash
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.