Sha256: 80dd33d72896e8d5dd1a71ced9cff1093bb3fdfc6318aaff3953e82ee00a3716
Contents?: true
Size: 1.82 KB
Versions: 6
Compression:
Stored size: 1.82 KB
Contents
committee :emission_factor do quorum 'from fuel type', :needs => :fuel_type do |characteristics| # characteristics[:fuel_type].emission_factor end quorum 'default' do # AutomobileTrip.fallback.emission_factor end end committee :fuel_consumed do quorum 'from fuel cost and fuel price' do # fuel_cost / fuel_price end quorum 'from distance and fuel efficiency', :needs => [:distance, :average_fuel_efficiency] do |characteristics| # characteristics[:distance] / characteristics[:average_fuel_efficiency] end end committee :fuel_price do # quorum 'from location' # # end quorum 'from fuel type' do end end committee :distance do quorum 'from duration and speed' do # duration * speed end end committee :average_fuel_efficiency do quorum 'from variant' do # variant includes make, year, and model end quorum 'from model' do # model includes make and year end quorum 'from year' do # year includes make end quorum 'from make' do end end committee :fuel_type do quorum 'from variant' do end quorum 'from model' do end quorum 'from make' do end quorum 'default' do # AutomobileTrip.fallback.fuel_type end end
Version data entries
6 entries across 6 versions & 1 rubygems