Class: BeerBash::BeerMenus::Beer
- Inherits:
-
Struct
- Object
- Struct
- BeerBash::BeerMenus::Beer
- Defined in:
- lib/beer_bash/beer_menus.rb
Instance Attribute Summary collapse
-
#abv ⇒ Object
Returns the value of attribute abv.
-
#format ⇒ Object
Returns the value of attribute format.
-
#name ⇒ Object
Returns the value of attribute name.
-
#price ⇒ Object
Returns the value of attribute price.
Instance Method Summary collapse
Instance Attribute Details
#abv ⇒ Object
Returns the value of attribute abv
27 28 29 |
# File 'lib/beer_bash/beer_menus.rb', line 27 def abv @abv end |
#format ⇒ Object
Returns the value of attribute format
27 28 29 |
# File 'lib/beer_bash/beer_menus.rb', line 27 def format @format end |
#name ⇒ Object
Returns the value of attribute name
27 28 29 |
# File 'lib/beer_bash/beer_menus.rb', line 27 def name @name end |
#price ⇒ Object
Returns the value of attribute price
27 28 29 |
# File 'lib/beer_bash/beer_menus.rb', line 27 def price @price end |
Instance Method Details
#on_tap? ⇒ Boolean
28 29 30 |
# File 'lib/beer_bash/beer_menus.rb', line 28 def on_tap? format =~ /draft|cask|growler/i end |