Module: BrighterPlanet::Shipment::Characterization

Defined in:
lib/shipment/characterization.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
# File 'lib/shipment/characterization.rb', line 4

def self.included(base)
  base.characterize do
    has :weight
    has :package_count
    has :carrier
    has :mode
    has :segment_count
    has :origin
    has :destination
    has :origin_zip_code      # for backwards compatability - note that this is a string, not a ZipCode
    has :destination_zip_code # for backwards compatability - note that this is a string, not a ZipCode
    has :distance
    has(:mapquest_api_key) { 'secret key' }
  end
end