Module: Google::Shopping::Merchant::Accounts::V1beta::OmnichannelSettingsService::Paths
- Extended by:
- Paths
- Included in:
- Client, Paths, Rest::Client
- Defined in:
- lib/google/shopping/merchant/accounts/v1beta/omnichannel_settings_service/paths.rb
Overview
Path helper methods for the OmnichannelSettingsService API.
Instance Method Summary collapse
-
#account_path(account:) ⇒ ::String
Create a fully-qualified Account resource string.
-
#omnichannel_setting_path(account:, omnichannel_setting:) ⇒ ::String
Create a fully-qualified OmnichannelSetting 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/accounts/v1beta/omnichannel_settings_service/paths.rb', line 38 def account_path account: "accounts/#{account}" 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}
53 54 55 56 57 |
# File 'lib/google/shopping/merchant/accounts/v1beta/omnichannel_settings_service/paths.rb', line 53 def omnichannel_setting_path account:, omnichannel_setting: raise ::ArgumentError, "account cannot contain /" if account.to_s.include? "/" "accounts/#{account}/omnichannelSettings/#{omnichannel_setting}" end |