Class: Google::Apis::MerchantapiReviewsV1beta::ReviewLink

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/merchantapi_reviews_v1beta/classes.rb,
lib/google/apis/merchantapi_reviews_v1beta/representations.rb,
lib/google/apis/merchantapi_reviews_v1beta/representations.rb

Overview

The URI of the review landing page.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ReviewLink

Returns a new instance of ReviewLink.



932
933
934
# File 'lib/google/apis/merchantapi_reviews_v1beta/classes.rb', line 932

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

Instance Attribute Details

Optional. The URI of the review landing page. For example: http://www.example. com/review_5.html. Corresponds to the JSON property link

Returns:

  • (String)


925
926
927
# File 'lib/google/apis/merchantapi_reviews_v1beta/classes.rb', line 925

def link
  @link
end

#typeString

Optional. Type of the review URI. Corresponds to the JSON property type

Returns:

  • (String)


930
931
932
# File 'lib/google/apis/merchantapi_reviews_v1beta/classes.rb', line 930

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



937
938
939
940
# File 'lib/google/apis/merchantapi_reviews_v1beta/classes.rb', line 937

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