Module: Google::Shopping::Merchant::Accounts::V1beta::LfpProvidersService::Paths

Extended by:
Paths
Included in:
Client, Paths, Rest::Client
Defined in:
lib/google/shopping/merchant/accounts/v1beta/lfp_providers_service/paths.rb

Overview

Path helper methods for the LfpProvidersService API.

Instance Method Summary collapse

Instance Method Details

#lfp_provider_path(account:, omnichannel_setting:, lfp_provider:) ⇒ ::String

Create a fully-qualified LfpProvider resource string.

The resource will be in the following format:

accounts/{account}/omnichannelSettings/{omnichannel_setting}/lfpProviders/{lfp_provider}

Parameters:

  • account (String)
  • omnichannel_setting (String)
  • lfp_provider (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


40
41
42
43
44
45
# File 'lib/google/shopping/merchant/accounts/v1beta/lfp_providers_service/paths.rb', line 40

def lfp_provider_path account:, omnichannel_setting:, lfp_provider:
  raise ::ArgumentError, "account cannot contain /" if .to_s.include? "/"
  raise ::ArgumentError, "omnichannel_setting cannot contain /" if omnichannel_setting.to_s.include? "/"

  "accounts/#{}/omnichannelSettings/#{omnichannel_setting}/lfpProviders/#{lfp_provider}"
end

#omnichannel_setting_path(account:, omnichannel_setting:) ⇒ ::String

Create a fully-qualified OmnichannelSetting resource string.

The resource will be in the following format:

accounts/{account}/omnichannelSettings/{omnichannel_setting}

Parameters:

  • account (String)
  • omnichannel_setting (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


58
59
60
61
62
# File 'lib/google/shopping/merchant/accounts/v1beta/lfp_providers_service/paths.rb', line 58

def omnichannel_setting_path account:, omnichannel_setting:
  raise ::ArgumentError, "account cannot contain /" if .to_s.include? "/"

  "accounts/#{}/omnichannelSettings/#{omnichannel_setting}"
end