Sha256: ff501feb881c5c25a806b775281514084d7461d5f7e9ccc3014fa0d094cab172

Contents?: true

Size: 431 Bytes

Versions: 14

Compression:

Stored size: 431 Bytes

Contents

class Carrier < ActiveRecord::Base
  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,
                :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

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
earth-0.5.0 lib/earth/shipping/carrier.rb
earth-0.4.12 lib/earth/shipping/carrier.rb
earth-0.4.11 lib/earth/shipping/carrier.rb
earth-0.4.10 lib/earth/shipping/carrier.rb
earth-0.4.9 lib/earth/shipping/carrier.rb
earth-0.4.8 lib/earth/shipping/carrier.rb
earth-0.4.7 lib/earth/shipping/carrier.rb
earth-0.4.6 lib/earth/shipping/carrier.rb
earth-0.4.5 lib/earth/shipping/carrier.rb
earth-0.4.4 lib/earth/shipping/carrier.rb
earth-0.4.3 lib/earth/shipping/carrier.rb
earth-0.4.2 lib/earth/shipping/carrier.rb
earth-0.4.1 lib/earth/shipping/carrier.rb
earth-0.4.0 lib/earth/shipping/carrier.rb