Class: Google::Apis::SheetsV4::PersonProperties

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_formatString

Optional. The display format of the person chip. If not set, the default display format is used. Corresponds to the JSON property displayFormat

Returns:

  • (String)


7368
7369
7370
# File 'lib/google/apis/sheets_v4/classes.rb', line 7368

def display_format
  @display_format
end

#emailString

Required. The email address linked to this person. This field is always present. Corresponds to the JSON property email

Returns:

  • (String)


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