Method: BeerDb::Model::BeerSerializer#initialize
- Defined in:
- lib/beerdb/serializers/beer.rb
#initialize(beer) ⇒ BeerSerializer
Returns a new instance of BeerSerializer.
7 8 9 |
# File 'lib/beerdb/serializers/beer.rb', line 7 def initialize( beer ) @beer = beer end |