Class: RateBeer::Region

Inherits:
Location show all
Defined in:
lib/ratebeer/region.rb

Constant Summary

Constants included from URLs

URLs::BASE_URL, URLs::SEARCH_URL

Instance Attribute Summary

Attributes included from Scraping

#id

Instance Method Summary collapse

Methods inherited from Location

data_keys, #doc

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) ⇒ Region

Returns a new instance of Region.



5
6
7
# File 'lib/ratebeer/region.rb', line 5

def initialize(id, name: nil)
  super(id, location_type: :region, name: name)
end