Class: Google::Apis::DocsV1::PersonProperties
- Inherits:
-
Object
- Object
- Google::Apis::DocsV1::PersonProperties
- 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
-
#email ⇒ String
Output only.
-
#name ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PersonProperties
constructor
A new instance of PersonProperties.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PersonProperties
Returns a new instance of PersonProperties.
3600 3601 3602 |
# File 'lib/google/apis/docs_v1/classes.rb', line 3600 def initialize(**args) update!(**args) end |
Instance Attribute Details
#email ⇒ String
Output only. The email address linked to this Person. This field is always
present.
Corresponds to the JSON property email
3592 3593 3594 |
# File 'lib/google/apis/docs_v1/classes.rb', line 3592 def email @email end |
#name ⇒ String
Output only. The name of the person if it is displayed in the link text
instead of the person's email address.
Corresponds to the JSON property name
3598 3599 3600 |
# File 'lib/google/apis/docs_v1/classes.rb', line 3598 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3605 3606 3607 3608 |
# File 'lib/google/apis/docs_v1/classes.rb', line 3605 def update!(**args) @email = args[:email] if args.key?(:email) @name = args[:name] if args.key?(:name) end |