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



1651
1652
1653
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1651

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)


1643
1644
1645
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1643

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)


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