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.
7356 7357 7358 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 7356 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
7348 7349 7350 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 7348 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
7354 7355 7356 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 7354 def email @email end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7361 7362 7363 7364 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 7361 def update!(**args) @display_format = args[:display_format] if args.key?(:display_format) @email = args[:email] if args.key?(:email) end |