Class: Google::Apis::MybusinessV3::Review

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

Overview

Represents a review for a location.

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



1689
1690
1691
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1689

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

Instance Attribute Details

#commentString

The body of the review as plain text with markups. Corresponds to the JSON property comment

Returns:

  • (String)


1672
1673
1674
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1672

def comment
  @comment
end

#create_timeString

The timestamp for when the review was written. Corresponds to the JSON property createTime

Returns:

  • (String)


1677
1678
1679
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1677

def create_time
  @create_time
end

#review_idString

The encrypted unique identifier. Corresponds to the JSON property reviewId

Returns:

  • (String)


1657
1658
1659
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1657

def review_id
  @review_id
end

#review_replyGoogle::Apis::MybusinessV3::ReviewReply

Represents the location owner/manager's reply to a review Corresponds to the JSON property reviewReply



1687
1688
1689
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1687

def review_reply
  @review_reply
end

#reviewerGoogle::Apis::MybusinessV3::Reviewer

Represents the author of reviews. Corresponds to the JSON property reviewer



1662
1663
1664
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1662

def reviewer
  @reviewer
end

#star_ratingString

Star rating of the review. Corresponds to the JSON property starRating

Returns:

  • (String)


1667
1668
1669
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1667

def star_rating
  @star_rating
end

#update_timeString

The timestamp for when the review was last modified. Corresponds to the JSON property updateTime

Returns:

  • (String)


1682
1683
1684
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1682

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1694
1695
1696
1697
1698
1699
1700
1701
1702
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1694

def update!(**args)
  @review_id = args[:review_id] if args.key?(:review_id)
  @reviewer = args[:reviewer] if args.key?(:reviewer)
  @star_rating = args[:star_rating] if args.key?(:star_rating)
  @comment = args[:comment] if args.key?(:comment)
  @create_time = args[:create_time] if args.key?(:create_time)
  @update_time = args[:update_time] if args.key?(:update_time)
  @review_reply = args[:review_reply] if args.key?(:review_reply)
end