Sha256: 67af2254b9eb67edd2aaac3a3844d88c5b90c021479af4be1b9bd864fcbbe804

Contents?: true

Size: 390 Bytes

Versions: 7

Compression:

Stored size: 390 Bytes

Contents

require 'characterizable'

module BrighterPlanet
  module BusTrip
    module Characterization
      def self.included(base)
        base.send :include, Characterizable
        base.characterize do
          has :bus_class
          has :duration # measures time in minutes
          has :distance_estimate, :trumps => :duration, :measures => :length
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
bus_trip-0.0.8 lib/bus_trip/characterization.rb
bus_trip-0.0.7 lib/bus_trip/characterization.rb
bus_trip-0.0.6 lib/bus_trip/characterization.rb
bus_trip-0.0.5 lib/bus_trip/characterization.rb
bus_trip-0.0.4 lib/bus_trip/characterization.rb
bus_trip-0.0.3 lib/bus_trip/characterization.rb
bus_trip-0.0.2 lib/bus_trip/characterization.rb