Class: BeerList::Leads::BeerAdvocate

Inherits:
Object
  • Object
show all
Includes:
BeerList::Listable
Defined in:
lib/beer_list/leads/beer_advocate.rb

Constant Summary collapse

BEERFLY =
'http://beeradvocate.com/beerfly/list'
LEAD_INDICATOR_TEXT =
'official website'

Instance Attribute Summary

Attributes included from BeerList::Listable

#page

Instance Method Summary collapse

Methods included from BeerList::Listable

#list

Instance Method Details



9
10
11
12
# File 'lib/beer_list/leads/beer_advocate.rb', line 9

def links
  @links ||= []
  pages
end

#urlObject



15
16
17
# File 'lib/beer_list/leads/beer_advocate.rb', line 15

def url
  "#{BEERFLY}?c_id=US&s_id=#{short_class_name}&bar=Y"
end