Class: SpreeCmCommissioner::VendorRouteMetric

Inherits:
Base
  • Object
show all
Includes:
RouteType
Defined in:
app/models/spree_cm_commissioner/vendor_route_metric.rb

Overview

Per-vendor counterpart of RouteMetric: tracks how many trips a single vendor runs on a directed (origin -> destination) pair. Used by trip search to answer “does this vendor run a return trip?” via a reverse-pair lookup, and is reusable for operator (vendor) display pages.

Constant Summary

Constants included from RouteType

RouteType::ROUTE_TYPES