Module: Google::Shopping::Merchant::Conversions::V1beta::ConversionSourcesService::Paths
- Extended by:
- Paths
- Included in:
- Client, Paths, Rest::Client
- Defined in:
- lib/google/shopping/merchant/conversions/v1beta/conversion_sources_service/paths.rb
Overview
Path helper methods for the ConversionSourcesService API.
Instance Method Summary collapse
-
#account_path(account:) ⇒ ::String
Create a fully-qualified Account resource string.
-
#conversion_source_path(account:, conversion_source:) ⇒ ::String
Create a fully-qualified ConversionSource resource string.
Instance Method Details
#account_path(account:) ⇒ ::String
Create a fully-qualified Account resource string.
The resource will be in the following format:
accounts/{account}
38 39 40 |
# File 'lib/google/shopping/merchant/conversions/v1beta/conversion_sources_service/paths.rb', line 38 def account_path account: "accounts/#{account}" end |
#conversion_source_path(account:, conversion_source:) ⇒ ::String
Create a fully-qualified ConversionSource resource string.
The resource will be in the following format:
accounts/{account}/conversionSources/{conversion_source}
53 54 55 56 57 |
# File 'lib/google/shopping/merchant/conversions/v1beta/conversion_sources_service/paths.rb', line 53 def conversion_source_path account:, conversion_source: raise ::ArgumentError, "account cannot contain /" if account.to_s.include? "/" "accounts/#{account}/conversionSources/#{conversion_source}" end |