lib/automobile/characterization.rb in automobile-0.0.12 vs lib/automobile/characterization.rb in automobile-0.0.13
- old
+ new
@@ -1,12 +1,9 @@
-require 'characterizable'
-
module BrighterPlanet
module Automobile
module Characterization
def self.included(base)
- base.send :include, Characterizable
base.characterize do
has :make do |make|
make.reveals :model_year do |model_year|
model_year.reveals :model, :trumps => :size_class do |model|
model.reveals :variant, :trumps => :hybridity
@@ -33,10 +30,9 @@
has :retirement
has :size_class
# has :annual_fuel_cost, :trumps => [:annual_distance_estimate, :weekly_distance_estimate, :daily_distance_estimate, :daily_duration, :weekly_fuel_cost], :measures => :cost
# has :weekly_fuel_cost, :trumps => [:annual_distance_estimate, :weekly_distance_estimate, :daily_distance_estimate, :daily_duration, :annual_fuel_cost], :measures => :cost
end
- base.add_implicit_characteristics
end
end
end
end