Class: Google::Apis::MybusinessV3::Reviewer

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 the author of reviews.

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) ⇒ 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_nameString

The name of the reviewer. Only populated with the reviewer's real name if is_anonymous is false. Corresponds to the JSON property displayName

Returns:

  • (String)

1713
1714
1715
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1713

def display_name
  @display_name
end

#is_anonymousBoolean Also known as: is_anonymous?

Indicates whether the reviewer has opted to remain anonymous. Corresponds to the JSON property isAnonymous

Returns:

  • (Boolean)

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