Module: Google::Shopping::Css::V1::CssProductInputsService::Paths
- Extended by:
- Paths
- Included in:
- Client, Paths, Rest::Client
- Defined in:
- lib/google/shopping/css/v1/css_product_inputs_service/paths.rb
Overview
Path helper methods for the CssProductInputsService API.
Instance Method Summary collapse
-
#account_path(account:) ⇒ ::String
Create a fully-qualified Account resource string.
-
#css_product_input_path(account:, css_product_input:) ⇒ ::String
Create a fully-qualified CssProductInput 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}
37 38 39 |
# File 'lib/google/shopping/css/v1/css_product_inputs_service/paths.rb', line 37 def account_path account: "accounts/#{account}" end |
#css_product_input_path(account:, css_product_input:) ⇒ ::String
Create a fully-qualified CssProductInput resource string.
The resource will be in the following format:
accounts/{account}/cssProductInputs/{css_product_input}
52 53 54 55 56 |
# File 'lib/google/shopping/css/v1/css_product_inputs_service/paths.rb', line 52 def css_product_input_path account:, css_product_input: raise ::ArgumentError, "account cannot contain /" if account.to_s.include? "/" "accounts/#{account}/cssProductInputs/#{css_product_input}" end |