Module: Google::Maps::FleetEngine::V1::TripService::Paths

Extended by:
Paths
Included in:
Client, Paths, Rest::Client
Defined in:
lib/google/maps/fleet_engine/v1/trip_service/paths.rb

Overview

Path helper methods for the TripService API.

Instance Method Summary collapse

Instance Method Details

#trip_path(provider:, trip:) ⇒ ::String

Create a fully-qualified Trip resource string.

The resource will be in the following format:

providers/{provider}/trips/{trip}

Parameters:

  • provider (String)
  • trip (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


38
39
40
41
42
# File 'lib/google/maps/fleet_engine/v1/trip_service/paths.rb', line 38

def trip_path provider:, trip:
  raise ::ArgumentError, "provider cannot contain /" if provider.to_s.include? "/"

  "providers/#{provider}/trips/#{trip}"
end