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

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

Overview

Path helper methods for the TermsOfServiceAgreementStateService API.

Instance Method Summary collapse

Instance Method Details

#account_path(account:) ⇒ ::String

Create a fully-qualified Account resource string.

The resource will be in the following format:

accounts/{account}

Parameters:

  • account (String)

Returns:

  • (::String)


38
39
40
# File 'lib/google/shopping/merchant/accounts/v1beta/terms_of_service_agreement_state_service/paths.rb', line 38

def  account:
  "accounts/#{}"
end

#terms_of_service_agreement_state_path(account:, identifier:) ⇒ ::String

Create a fully-qualified TermsOfServiceAgreementState resource string.

The resource will be in the following format:

accounts/{account}/termsOfServiceAgreementStates/{identifier}

Parameters:

  • account (String)
  • identifier (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


53
54
55
56
57
# File 'lib/google/shopping/merchant/accounts/v1beta/terms_of_service_agreement_state_service/paths.rb', line 53

def terms_of_service_agreement_state_path account:, identifier:
  raise ::ArgumentError, "account cannot contain /" if .to_s.include? "/"

  "accounts/#{}/termsOfServiceAgreementStates/#{identifier}"
end