Class: RateBeer::Country
Constant Summary
Constants included from URLs
URLs::BASE_URL, URLs::SEARCH_URL
Instance Attribute Summary
Attributes included from Scraping
Instance Method Summary collapse
-
#initialize(id, name: nil) ⇒ Country
constructor
A new instance of Country.
Methods inherited from Location
Methods included from URLs
#beer_url, #brewery_beers_url, #brewery_url, #country_url, #region_url, #review_url, #style_beers_url, #style_url
Methods included from Scraping
#==, #fix_characters, #full_details, #id_from_link, included, #inspect, nbsp, noko_doc, #page_count, #pagination?, #post_request, #symbolize_text, #to_s, #url
Constructor Details
#initialize(id, name: nil) ⇒ Country
Returns a new instance of Country.
5 6 7 |
# File 'lib/ratebeer/country.rb', line 5 def initialize(id, name: nil) super(id, location_type: :country, name: name) end |