Class: Google::Apis::MybusinessV3::Review
- Inherits:
-
Object
- Object
- Google::Apis::MybusinessV3::Review
- 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
-
#comment ⇒ String
The body of the review as plain text with markups.
-
#create_time ⇒ String
The timestamp for when the review was written.
-
#review_id ⇒ String
The encrypted unique identifier.
-
#review_reply ⇒ Google::Apis::MybusinessV3::ReviewReply
Represents the location owner/manager's reply to a review Corresponds to the JSON property
reviewReply
. -
#reviewer ⇒ Google::Apis::MybusinessV3::Reviewer
Represents the author of reviews.
-
#star_rating ⇒ String
Star rating of the review.
-
#update_time ⇒ String
The timestamp for when the review was last modified.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Review
constructor
A new instance of Review.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
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
#comment ⇒ String
The body of the review as plain text with markups.
Corresponds to the JSON property comment
1672 1673 1674 |
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1672 def comment @comment end |
#create_time ⇒ String
The timestamp for when the review was written.
Corresponds to the JSON property createTime
1677 1678 1679 |
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1677 def create_time @create_time end |
#review_id ⇒ String
The encrypted unique identifier.
Corresponds to the JSON property reviewId
1657 1658 1659 |
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1657 def review_id @review_id end |
#review_reply ⇒ Google::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 |
#reviewer ⇒ Google::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_rating ⇒ String
Star rating of the review.
Corresponds to the JSON property starRating
1667 1668 1669 |
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1667 def @star_rating end |
#update_time ⇒ String
The timestamp for when the review was last modified.
Corresponds to the JSON property updateTime
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 |