Class: Google::Apis::MybusinessV3::Reviewer
- Inherits:
-
Object
- Object
- Google::Apis::MybusinessV3::Reviewer
- 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 the author of reviews.
Instance Attribute Summary collapse
-
#display_name ⇒ String
The name of the reviewer.
-
#is_anonymous ⇒ Boolean
(also: #is_anonymous?)
Indicates whether the reviewer has opted to remain anonymous.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Reviewer
constructor
A new instance of Reviewer.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Reviewer
Returns a new instance of Reviewer
1721 1722 1723 |
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1721 def initialize(**args) update!(**args) end |
Instance Attribute Details
#display_name ⇒ String
The name of the reviewer.
Only populated with the reviewer's real name if is_anonymous is false.
Corresponds to the JSON property displayName
1713 1714 1715 |
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1713 def display_name @display_name end |
#is_anonymous ⇒ Boolean Also known as: is_anonymous?
Indicates whether the reviewer has opted to remain anonymous.
Corresponds to the JSON property isAnonymous
1718 1719 1720 |
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1718 def is_anonymous @is_anonymous end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1726 1727 1728 1729 |
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1726 def update!(**args) @display_name = args[:display_name] if args.key?(:display_name) @is_anonymous = args[:is_anonymous] if args.key?(:is_anonymous) end |