lib/ratebeer/beer.rb
# Each key represents an item of data accessible for each beer. The
# included scraping module defines dynamically a series of methods for
# accessing this data.
#
Each key represents an item of data accessible for each beer. The
included scraping module defines dynamically a series of methods for
accessing this data.
Each key represents an item of data accessible for each beer . The included scraping module defines dynamically a series of methods for accessing this data .
def scrape_brewery
        brewery_element = doc.at_css("a[itemprop='brand']")
        brewery_id = id_from_link(brewery_element)
        brewery_name = fix_characters(brewery_element.text)
        @brewery = Brewery::Brewery.new(brewery_id, name: brewery_name)
      end
def scrape_brewery brewery_element = doc . at_css ( "a[itemprop='brand']" ) brewery_id = id_from_link ( brewery_element ) brewery_name = fix_characters ( brewery_element . text ) @brewery = Brewery :: Brewery . new ( brewery_id , name : brewery_name ) end
Each key represents an item of data accessible for each beer.
Each key represents an item of data accessible for each beer .