class BeerList::Establishments::WashingtonSquare

Constants

URL

Public Instance Methods

get_list() click to toggle source
# File lib/beer_list/establishments/washington_square.rb, line 6
def get_list
  base_list
  remove_facebook_plug
  remove_nbsp
end
url() click to toggle source
# File lib/beer_list/establishments/washington_square.rb, line 12
def url
  URL
end

Private Instance Methods

base_list() click to toggle source
# File lib/beer_list/establishments/washington_square.rb, line 18
def base_list
  @results = page.search('p strong').map(&:text)
end
remove_facebook_plug() click to toggle source
# File lib/beer_list/establishments/washington_square.rb, line 22
def remove_facebook_plug
  @results.shift
end
remove_nbsp() click to toggle source
# File lib/beer_list/establishments/washington_square.rb, line 26
def remove_nbsp
  @results = @results.map{ |b| b.gsub(/[[:space:]]{2,}/, '') }
end