Module: Google::Shopping::Merchant::Lfp::V1beta::LfpSaleService::Paths

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

Overview

Path helper methods for the LfpSaleService API.

Instance Method Summary collapse

Instance Method Details

#lfp_sale_path(account:, sale:) ⇒ ::String

Create a fully-qualified LfpSale resource string.

The resource will be in the following format:

accounts/{account}/lfpSales/{sale}

Parameters:

  • account (String)
  • sale (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


39
40
41
42
43
# File 'lib/google/shopping/merchant/lfp/v1beta/lfp_sale_service/paths.rb', line 39

def lfp_sale_path account:, sale:
  raise ::ArgumentError, "account cannot contain /" if .to_s.include? "/"

  "accounts/#{}/lfpSales/#{sale}"
end