Module: Google::Shopping::Merchant::Accounts::V1beta::AccountsService::Paths
- Extended by:
- Paths
- Included in:
- Client, Paths, Rest::Client
- Defined in:
- lib/google/shopping/merchant/accounts/v1beta/accounts_service/paths.rb
Overview
Path helper methods for the AccountsService API.
Instance Method Summary collapse
-
#account_path(account:) ⇒ ::String
Create a fully-qualified Account resource string.
-
#terms_of_service_path(version:) ⇒ ::String
Create a fully-qualified TermsOfService resource string.
-
#user_path(account:, email:) ⇒ ::String
Create a fully-qualified User 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/accounts_service/paths.rb', line 38 def account_path account: "accounts/#{account}" end |
#terms_of_service_path(version:) ⇒ ::String
Create a fully-qualified TermsOfService resource string.
The resource will be in the following format:
termsOfService/{version}
52 53 54 |
# File 'lib/google/shopping/merchant/accounts/v1beta/accounts_service/paths.rb', line 52 def terms_of_service_path version: "termsOfService/#{version}" end |
#user_path(account:, email:) ⇒ ::String
Create a fully-qualified User resource string.
The resource will be in the following format:
accounts/{account}/users/{email}
67 68 69 70 71 |
# File 'lib/google/shopping/merchant/accounts/v1beta/accounts_service/paths.rb', line 67 def user_path account:, email: raise ::ArgumentError, "account cannot contain /" if account.to_s.include? "/" "accounts/#{account}/users/#{email}" end |