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
1651 1652 1653 |
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1651 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
1643 1644 1645 |
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1643 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
1648 1649 1650 |
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1648 def is_anonymous @is_anonymous end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1656 1657 1658 1659 |
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1656 def update!(**args) @display_name = args[:display_name] if args.key?(:display_name) @is_anonymous = args[:is_anonymous] if args.key?(:is_anonymous) end |