Class: Google::Apis::SheetsV4::PersonProperties
- Inherits:
-
Object
- Object
- Google::Apis::SheetsV4::PersonProperties
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/sheets_v4/classes.rb,
lib/google/apis/sheets_v4/representations.rb,
lib/google/apis/sheets_v4/representations.rb
Overview
Properties specific to a linked person.
Instance Attribute Summary collapse
-
#display_format ⇒ String
Optional.
-
#email ⇒ String
Required.
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.
7376 7377 7378 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 7376 def initialize(**args) update!(**args) end |
Instance Attribute Details
#display_format ⇒ String
Optional. The display format of the person chip. If not set, the default
display format is used.
Corresponds to the JSON property displayFormat
7368 7369 7370 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 7368 def display_format @display_format end |
#email ⇒ String
Required. The email address linked to this person. This field is always
present.
Corresponds to the JSON property email
7374 7375 7376 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 7374 def email @email end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7381 7382 7383 7384 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 7381 def update!(**args) @display_format = args[:display_format] if args.key?(:display_format) @email = args[:email] if args.key?(:email) end |