class Metal::Base

Public Class Methods

download_page( url ) click to toggle source

todo/check: rename to get_page or such - why? why not?

# File lib/webget-football/metal.rb, line 12
def self.download_page( url )  ## get & record/save to cache
  response = Webget.page( url )  ## fetch (and cache) html page (via HTTP GET)

  ## note: exit on get / fetch error - do NOT continue for now - why? why not?
  exit 1   if response.status.nok?    ## e.g.  HTTP status code != 200
end