Class: BeerList::Establishments::Establishment

Inherits:
Object
  • Object
show all
Includes:
Listable
Defined in:
lib/beer_list/establishments/establishment.rb

Instance Attribute Summary

Attributes included from Listable

#page

Instance Method Summary collapse

Methods included from Listable

#list

Instance Method Details

#get_listObject



6
7
8
# File 'lib/beer_list/establishments/establishment.rb', line 6

def get_list
  raise "#{__method__} is not implemented in #{self.class.name}"
end

#short_class_nameObject



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

def short_class_name
  self.class.name.split('::').last
end

#urlObject



10
11
12
# File 'lib/beer_list/establishments/establishment.rb', line 10

def url
  raise "#{__method__} is not implemented in #{self.class.name}"
end