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
| 1592 1593 1594 | # File 'generated/google/apis/mybusiness_v3/classes.rb', line 1592 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
| 1560 1561 1562 | # File 'generated/google/apis/mybusiness_v3/classes.rb', line 1560 def comment @comment end | 
#create_time ⇒ String
The timestamp for when the review was written.
Corresponds to the JSON property createTime
| 1565 1566 1567 | # File 'generated/google/apis/mybusiness_v3/classes.rb', line 1565 def create_time @create_time end | 
#review_id ⇒ String
The encrypted unique identifier.
Corresponds to the JSON property reviewId
| 1570 1571 1572 | # File 'generated/google/apis/mybusiness_v3/classes.rb', line 1570 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
| 1575 1576 1577 | # File 'generated/google/apis/mybusiness_v3/classes.rb', line 1575 def review_reply @review_reply end | 
#reviewer ⇒ Google::Apis::MybusinessV3::Reviewer
Represents the author of reviews.
Corresponds to the JSON property reviewer
| 1580 1581 1582 | # File 'generated/google/apis/mybusiness_v3/classes.rb', line 1580 def reviewer @reviewer end | 
#star_rating ⇒ String
Star rating of the review.
Corresponds to the JSON property starRating
| 1585 1586 1587 | # File 'generated/google/apis/mybusiness_v3/classes.rb', line 1585 def @star_rating end | 
#update_time ⇒ String
The timestamp for when the review was last modified.
Corresponds to the JSON property updateTime
| 1590 1591 1592 | # File 'generated/google/apis/mybusiness_v3/classes.rb', line 1590 def update_time @update_time end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 1597 1598 1599 1600 1601 1602 1603 1604 1605 | # File 'generated/google/apis/mybusiness_v3/classes.rb', line 1597 def update!(**args) @comment = args[:comment] if args.key?(:comment) @create_time = args[:create_time] if args.key?(:create_time) @review_id = args[:review_id] if args.key?(:review_id) @review_reply = args[:review_reply] if args.key?(:review_reply) @reviewer = args[:reviewer] if args.key?(:reviewer) @star_rating = args[:star_rating] if args.key?(:star_rating) @update_time = args[:update_time] if args.key?(:update_time) end |