lib/earth/shipping/carrier.rb in earth-0.3.15 vs lib/earth/shipping/carrier.rb in earth-0.4.0
- old
+ new
@@ -2,12 +2,12 @@
set_primary_key :name
has_many :carrier_modes, :foreign_key => 'carrier_name', :primary_key => 'name'
# TODO calculate these
- falls_back_on :route_inefficiency_factor => 1.03,# Carrier.weighted_average(:route_inefficiency_factor, :weighted_by => :package_volume)
- :transport_emission_factor => 0.0005266,# Carrier.weighted_average(:transport_emission_factor, :weighted_by => :package_volume)
- :corporate_emission_factor => 0.221# Carrier.weighted_average(:corporate_emission_factor, :weighted_by => :package_volume)
+ falls_back_on :route_inefficiency_factor => 1.03,
+ :transport_emission_factor => 0.0005266,
+ :corporate_emission_factor => 0.221
data_miner do
tap "Brighter Planet's shipping company data", Earth.taps_server
end
end