class RubyPtvApi::Operation::XTour::PlanBasicTours
Attributes
depots[R]
fleet[R]
transport_orders[R]
Public Class Methods
new(transport_orders:, depots:, fleet:)
click to toggle source
# File lib/ruby_ptv_api/operation/x_tour/plan_basic_tours.rb, line 7 def initialize(transport_orders:, depots:, fleet:) @transport_orders = transport_orders @depots = depots @fleet = fleet end
Public Instance Methods
params()
click to toggle source
# File lib/ruby_ptv_api/operation/x_tour/plan_basic_tours.rb, line 30 def params { transportOrders: transport_orders, depots: depots, fleet: fleet, planningParams: planning_params, inputPlan: nil } end
planning_params()
click to toggle source
# File lib/ruby_ptv_api/operation/x_tour/plan_basic_tours.rb, line 17 def planning_params RubyPtvApi::Model::XTour::StandardParams.new({ "coDriverTransportPointsInSeparateTours" => false, 'distanceMatrixCalculation' => [ RubyPtvApi::Model::XTour::DistanceMatrixByRoad.new({ 'dimaId' => 1, 'deleteBeforeUsage' => true, 'deleteAfterUsage' => true }) ] }) end
ptv_function()
click to toggle source
# File lib/ruby_ptv_api/operation/x_tour/plan_basic_tours.rb, line 13 def ptv_function 'planBasicTours' end
Protected Instance Methods
response_class()
click to toggle source
# File lib/ruby_ptv_api/operation/x_tour/plan_basic_tours.rb, line 42 def response_class RubyPtvApi::Model::XTour::Plan end