Module: BrighterPlanet::AutomobileTrip::Characterization

Defined in:
lib/automobile_trip/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
19
20
21
22
23
24
25
26
27
28
29
# File 'lib/automobile_trip/characterization.rb', line 4

def self.included(base)
  base.characterize do
    has :date
    has :country
    has :make
    has :make_year
    has :make_model
    has :make_model_year
    has :make_model_year_variant
    has :size_class
    has :hybridity
    has :urbanity_estimate
    has :hybridity_multiplier
    has :fuel_efficiency
    has :speed
    has :city_speed
    has :highway_speed
    has :duration
    has :origin
    has :destination
    has :distance
    has :fuel_use
    has :automobile_fuel # don't call this fuel b/c then if you specify fuel.name in tests sniff will try to look it up in the fuels fixture, not automobile_fuels
    has(:mapquest_api_key) { 'secret key' }
  end
end