Class: AutomobileTypeFuel
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- AutomobileTypeFuel
- Defined in:
- lib/earth/automobile/automobile_type_fuel.rb
Instance Method Summary collapse
-
#latest_activity_year_type_fuel ⇒ Object
for calculating vehicles.
Instance Method Details
#latest_activity_year_type_fuel ⇒ Object
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 |