Class: BeerList::Establishments::BulldogUptown
- Inherits:
-
Establishment
- Object
- Establishment
- BeerList::Establishments::BulldogUptown
- Defined in:
- lib/beer_list/establishments/bulldog_uptown.rb
Constant Summary collapse
- URL =
'http://www.thebulldoguptown.com/beer/'
Instance Attribute Summary
Attributes included from Listable
Instance Method Summary collapse
Methods inherited from Establishment
Methods included from Listable
Instance Method Details
#get_list ⇒ Object
6 7 8 9 |
# File 'lib/beer_list/establishments/bulldog_uptown.rb', line 6 def get_list list = page.search('span.menuTitle').map(&:text) list = process_list list end |
#process_list(list) ⇒ Object
11 12 13 14 |
# File 'lib/beer_list/establishments/bulldog_uptown.rb', line 11 def process_list(list) list.pop 5 list.map{ |e| e.split(' (').first } end |
#url ⇒ Object
16 17 18 |
# File 'lib/beer_list/establishments/bulldog_uptown.rb', line 16 def url URL end |