Sha256: 9e4f4d153d890ccb354bb14c9c578a1f2c7f518c98bc479e0ac8af829af67b88

Contents?: true

Size: 559 Bytes

Versions: 2

Compression:

Stored size: 559 Bytes

Contents

module BrighterPlanet
  module Automobile
    module Fallback
      def self.included(base)
        base.falls_back_on  :fuel_efficiency => 20.182.miles_per_gallon.to(:kilometres_per_litre), # mpg https://brighterplanet.sifterapp.com/projects/30/issues/428
                            :urbanity => 0.43, # EPA via Ian https://brighterplanet.sifterapp.com/projects/30/issues/428
                            :annual_distance_estimate => 11819.miles.to(:kilometres) # miles https://brighterplanet.sifterapp.com/projects/30/issues/428
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
automobile-0.1.5 lib/automobile/fallback.rb
automobile-0.1.3 lib/automobile/fallback.rb