lib/ratebeer/beer.rb
def scrape_style
        style_element = doc.at_css("a[href^='/beerstyles']")
        style_id = id_from_link(style_element)
        style_name = fix_characters(style_element.text)
        @style = Style.new(style_id, name: style_name)
      end
# 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_style
        style_element = doc.at_css("a[href^='/beerstyles']")
        style_id = id_from_link(style_element)
        style_name = fix_characters(style_element.text)
        @style = Style.new(style_id, name: style_name)
      end
def scrape_style style_element = doc . at_css ( "a[href^='/beerstyles']" ) style_id = id_from_link ( style_element ) style_name = fix_characters ( style_element . text ) @style = Style . new ( style_id , name : style_name ) end
Each key represents an item of data accessible for each beer.
Each key represents an item of data accessible for each beer .