Module: Google::Shopping::Merchant::Accounts::V1beta::EmailPreferencesService::Paths
- Extended by:
- Paths
- Included in:
- Client, Paths, Rest::Client
- Defined in:
- lib/google/shopping/merchant/accounts/v1beta/email_preferences_service/paths.rb
Overview
Path helper methods for the EmailPreferencesService API.
Instance Method Summary collapse
-
#email_preferences_path(account:, email:) ⇒ ::String
Create a fully-qualified EmailPreferences resource string.
Instance Method Details
#email_preferences_path(account:, email:) ⇒ ::String
Create a fully-qualified EmailPreferences resource string.
The resource will be in the following format:
accounts/{account}/users/{email}/emailPreferences
39 40 41 42 43 |
# File 'lib/google/shopping/merchant/accounts/v1beta/email_preferences_service/paths.rb', line 39 def email_preferences_path account:, email: raise ::ArgumentError, "account cannot contain /" if account.to_s.include? "/" "accounts/#{account}/users/#{email}/emailPreferences" end |