Class: Google::Apis::RetailV2::GoogleCloudRetailV2RuleRedirectAction

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/retail_v2/classes.rb,
lib/google/apis/retail_v2/representations.rb,
lib/google/apis/retail_v2/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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRetailV2RuleRedirectAction

Returns a new instance of GoogleCloudRetailV2RuleRedirectAction.



3707
3708
3709
# File 'lib/google/apis/retail_v2/classes.rb', line 3707

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#redirect_uriString

URL must have length equal or less than 2000 characters. Corresponds to the JSON property redirectUri

Returns:

  • (String)


3705
3706
3707
# File 'lib/google/apis/retail_v2/classes.rb', line 3705

def redirect_uri
  @redirect_uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3712
3713
3714
# File 'lib/google/apis/retail_v2/classes.rb', line 3712

def update!(**args)
  @redirect_uri = args[:redirect_uri] if args.key?(:redirect_uri)
end