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.



964
965
966
# File 'lib/google/apis/merchantapi_reviews_v1beta/classes.rb', line 964

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)


957
958
959
# File 'lib/google/apis/merchantapi_reviews_v1beta/classes.rb', line 957

def link
  @link
end

#typeString

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

Returns:

  • (String)


962
963
964
# File 'lib/google/apis/merchantapi_reviews_v1beta/classes.rb', line 962

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



969
970
971
972
# File 'lib/google/apis/merchantapi_reviews_v1beta/classes.rb', line 969

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