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

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

Parameters:

  • account (String)
  • email (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


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 .to_s.include? "/"

  "accounts/#{}/users/#{email}/emailPreferences"
end