Class: BeerList::Establishments::HappyGnome

Inherits:
Establishment show all
Defined in:
lib/beer_list/establishments/happy_gnome.rb

Constant Summary collapse

DRAFTS =
'http://thehappygnome.com/menus/drafts/'
BOTTLES =
'http://thehappygnome.com/menus/bottled-beers/'

Instance Attribute Summary collapse

Attributes included from Listable

#page

Instance Method Summary collapse

Methods inherited from Establishment

#short_class_name

Methods included from Listable

#list, #short_class_name

Constructor Details

#initializeHappyGnome

Returns a new instance of HappyGnome.



9
10
11
# File 'lib/beer_list/establishments/happy_gnome.rb', line 9

def initialize
  @url = DRAFTS
end

Instance Attribute Details

#urlObject

Returns the value of attribute url.



4
5
6
# File 'lib/beer_list/establishments/happy_gnome.rb', line 4

def url
  @url
end

Instance Method Details

#get_listObject



13
14
15
16
# File 'lib/beer_list/establishments/happy_gnome.rb', line 13

def get_list
  get_draft_list
  get_bottle_list
end