Sha256: e292950fb07993e539e3e7396722762c48853ccb00eaaebee06b62c4c4f8cbef
Contents?: true
Size: 1.12 KB
Versions: 2
Compression:
Stored size: 1.12 KB
Contents
require 'characterizable' module BrighterPlanet module Flight module Characterization def self.included(base) base.send :include, Characterizable base.characterize do has :date, :trumps => :year has :year has :time_of_day has :origin_airport do |origin_airport| origin_airport.reveals :destination_airport, :trumps => [:distance_class, :domesticity, :distance_estimate] end has :distance_class has :distance_estimate, :trumps => :distance_class, :measures => :length, :precision => 0 has :domesticity has :airline has :trips has :emplanements_per_trip has :seat_class has :load_factor, :measures => :percentage has :seats_estimate, :range => 1..500 has :aircraft_class, :trumps => [:propulsion, :fuel_type] has :aircraft, :trumps => [:propulsion, :aircraft_class, :seats_estimate, :fuel_type] has :propulsion, :trumps => :fuel_type has :creation_date, :hidden => true end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
flight-0.0.11 | lib/flight/characterization.rb |
flight-0.0.10 | lib/flight/characterization.rb |