Class: Google::Apis::CloudsearchV1::AppsDynamiteSharedJustificationPerson

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudsearch_v1/classes.rb,
lib/google/apis/cloudsearch_v1/representations.rb,
lib/google/apis/cloudsearch_v1/representations.rb

Overview

Data for rendering a person associated with a document.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AppsDynamiteSharedJustificationPerson

Returns a new instance of AppsDynamiteSharedJustificationPerson.



2683
2684
2685
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2683

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#is_recipientBoolean Also known as: is_recipient?

Whether the person is the recipient of the suggestions. Corresponds to the JSON property isRecipient

Returns:

  • (Boolean)


2675
2676
2677
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2675

def is_recipient
  @is_recipient
end

#userGoogle::Apis::CloudsearchV1::UserId

Primary key for User resource. Corresponds to the JSON property user



2681
2682
2683
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2681

def user
  @user
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2688
2689
2690
2691
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2688

def update!(**args)
  @is_recipient = args[:is_recipient] if args.key?(:is_recipient)
  @user = args[:user] if args.key?(:user)
end