Class: BeerBash::BeerMenus::Beer

Inherits:
Struct
  • Object
show all
Defined in:
lib/beer_bash/beer_menus.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#abvObject

Returns the value of attribute abv

Returns:

  • (Object)

    the current value of abv



27
28
29
# File 'lib/beer_bash/beer_menus.rb', line 27

def abv
  @abv
end

#formatObject

Returns the value of attribute format

Returns:

  • (Object)

    the current value of format



27
28
29
# File 'lib/beer_bash/beer_menus.rb', line 27

def format
  @format
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



27
28
29
# File 'lib/beer_bash/beer_menus.rb', line 27

def name
  @name
end

#priceObject

Returns the value of attribute price

Returns:

  • (Object)

    the current value of price



27
28
29
# File 'lib/beer_bash/beer_menus.rb', line 27

def price
  @price
end

Instance Method Details

#on_tap?Boolean

Returns:

  • (Boolean)


28
29
30
# File 'lib/beer_bash/beer_menus.rb', line 28

def on_tap?
  format =~ /draft|cask|growler/i
end