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
-
#lfp_sale_path(account:, sale:) ⇒ ::String
Create a fully-qualified LfpSale resource string.
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}
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 account.to_s.include? "/" "accounts/#{account}/lfpSales/#{sale}" end |