Class: AutomobileTypeFuel

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/earth/automobile/automobile_type_fuel.rb

Instance Method Summary collapse

Instance Method Details

#latest_activity_year_type_fuelObject

for calculating vehicles



5
6
7
# File 'lib/earth/automobile/automobile_type_fuel.rb', line 5

def latest_activity_year_type_fuel
  AutomobileActivityYearTypeFuel.latest.where(:type_name => type_name, :fuel_family => fuel_family).first
end