lib/ratebeer/beer/review_set.rb
# Generate the Nokogiri doc for this review set.
#
# This is different from other doc functions, in that reviews are
# paginated. The doc is formed by concatenating together the relevant
# parts of each page, ready for parsing.
#
Generate the Nokogiri doc for this review set.
This is different from other doc functions, in that reviews are
paginated. The doc is formed by concatenating together the relevant
parts of each page, ready for parsing.
Generate the Nokogiri doc for this review set . This is different from other doc functions in that reviews are paginated . The doc is formed by concatenating together the relevant parts of each page ready for parsing .
def construct_doc
        @doc = num_pages.times.map do |page_number|
          url = URI.join(BASE_URL,
                         review_url(@beer.id, url_suffix, page_number))
          noko_doc(url).at_css('.reviews-container')
        end
      end
def construct_doc @doc = num_pages . times . map do | page_number | url = URI . join ( BASE_URL , review_url ( @beer . id , url_suffix , page_number ) ) noko_doc ( url ) . at_css ( '.reviews-container' ) end end
Generate the Nokogiri doc for this review set.
Generate the Nokogiri doc for this review set .