Class: FuelType

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/earth/fuel/fuel_type.rb

Instance Method Summary collapse

Instance Method Details

#priceObject



15
16
17
# File 'lib/earth/fuel/fuel_type.rb', line 15

def price
  prices.average :price
end