Class: Google::Apis::DocsV1::PersonProperties

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

Overview

Properties specific to a linked Person.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PersonProperties

Returns a new instance of PersonProperties.



3916
3917
3918
# File 'lib/google/apis/docs_v1/classes.rb', line 3916

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

Instance Attribute Details

#emailString

Output only. The email address linked to this Person. This field is always present. Corresponds to the JSON property email

Returns:

  • (String)


3908
3909
3910
# File 'lib/google/apis/docs_v1/classes.rb', line 3908

def email
  @email
end

#nameString

Output only. The name of the person if it's displayed in the link text instead of the person's email address. Corresponds to the JSON property name

Returns:

  • (String)


3914
3915
3916
# File 'lib/google/apis/docs_v1/classes.rb', line 3914

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3921
3922
3923
3924
# File 'lib/google/apis/docs_v1/classes.rb', line 3921

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