lib/ratebeer/beer.rb
def validate_beer
        error_indicator = 'we didn\'t find this beer'
        error_message = "Beer not found - #{id}"
        raise PageNotFoundError, error_message if name == error_indicator
      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 validate_beer
        error_indicator = 'we didn\'t find this beer'
        error_message = "Beer not found - #{id}"
        raise PageNotFoundError, error_message if name == error_indicator
      end
def validate_beer error_indicator = 'we didn\'t find this beer' error_message = "Beer not found - #{id}" raise PageNotFoundError , error_message if name == error_indicator end
Each key represents an item of data accessible for each beer.
Each key represents an item of data accessible for each beer .