Class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaRuleRedirectAction
- Inherits:
-
Object
- Object
- Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaRuleRedirectAction
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/retail_v2alpha/classes.rb,
lib/google/apis/retail_v2alpha/representations.rb,
lib/google/apis/retail_v2alpha/representations.rb
Overview
Redirects a shopper to a specific page. * Rule Condition: Must specify Condition.query_terms. * Action Input: Request Query * Action Result: Redirects shopper to provided uri.
Instance Attribute Summary collapse
-
#redirect_uri ⇒ String
URL must have length equal or less than 2000 characters.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRetailV2alphaRuleRedirectAction
constructor
A new instance of GoogleCloudRetailV2alphaRuleRedirectAction.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRetailV2alphaRuleRedirectAction
Returns a new instance of GoogleCloudRetailV2alphaRuleRedirectAction.
6370 6371 6372 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 6370 def initialize(**args) update!(**args) end |
Instance Attribute Details
#redirect_uri ⇒ String
URL must have length equal or less than 2000 characters.
Corresponds to the JSON property redirectUri
6368 6369 6370 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 6368 def redirect_uri @redirect_uri end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6375 6376 6377 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 6375 def update!(**args) @redirect_uri = args[:redirect_uri] if args.key?(:redirect_uri) end |