lib/scraper.rb
# Returns an array of ZipData.
Returns an array of ZipData.
Returns an array of ZipData .
def scrape
    (3..@html.css('tr').length - 2).each do |i|
      row = @html.css('tr')[i]
      @zip_data.push(ZipData.new(FEED_URL + row.css('a').text,
                                 format_file_size(row.css('td')[2])))
    end
    @zip_data
  end
def scrape ( 3 .. @html . css ( 'tr' ) . length - 2 ) . each do | i | row = @html . css ( 'tr' ) [ i ] @zip_data . push ( ZipData . new ( FEED_URL + row . css ( 'a' ) . text , format_file_size ( row . css ( 'td' ) [ 2 ] ) ) ) end @zip_data end
Returns an array of ZipData.
Returns an array of ZipData .
# Data starts at tr[3] and ends at tr[n-2].