Module: BrighterPlanet::Shipment::Data
- Defined in:
- lib/shipment/data.rb
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/shipment/data.rb', line 4 def self.included(base) base.data_miner do schema do float 'weight' integer 'package_count' string 'carrier_name' string 'mode_name' integer 'segment_count' string 'origin' string 'destination' string 'origin_zip_code' # For backwards compatability string 'destination_zip_code' # For backwards compatability float 'distance' string 'mapquest_api_key' end process :run_data_miner_on_belongs_to_associations end end |