Class: Google::Apis::AndroidpublisherV2::Review

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Review

Returns a new instance of Review.



1127
1128
1129
# File 'generated/google/apis/androidpublisher_v2/classes.rb', line 1127

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

Instance Attribute Details

#author_nameString

The name of the user who wrote the review. Corresponds to the JSON property authorName

Returns:

  • (String)


1115
1116
1117
# File 'generated/google/apis/androidpublisher_v2/classes.rb', line 1115

def author_name
  @author_name
end

#commentsArray<Google::Apis::AndroidpublisherV2::Comment>

A repeated field containing comments for the review. Corresponds to the JSON property comments



1120
1121
1122
# File 'generated/google/apis/androidpublisher_v2/classes.rb', line 1120

def comments
  @comments
end

#review_idString

Unique identifier for this review. Corresponds to the JSON property reviewId

Returns:

  • (String)


1125
1126
1127
# File 'generated/google/apis/androidpublisher_v2/classes.rb', line 1125

def review_id
  @review_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1132
1133
1134
1135
1136
# File 'generated/google/apis/androidpublisher_v2/classes.rb', line 1132

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