Class: BeerList::Establishments::BulldogUptown

Inherits:
Establishment show all
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

#page

Instance Method Summary collapse

Methods inherited from Establishment

#short_class_name

Methods included from Listable

#list, #short_class_name

Instance Method Details

#get_listObject



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

#urlObject



16
17
18
# File 'lib/beer_list/establishments/bulldog_uptown.rb', line 16

def url
  URL
end