Class: PunkyBrewster::BeerList

Inherits:
Array
  • Object
show all
Defined in:
lib/punky_brewster/beer_list.rb

Instance Method Summary collapse

Instance Method Details

#serialized_propertiesObject



5
6
7
# File 'lib/punky_brewster/beer_list.rb', line 5

def serialized_properties
  map(&:to_h)
end

#to_jsonObject



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

def to_json
  JSON.generate(serialized_properties)
end