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.



7356
7357
7358
# File 'lib/google/apis/sheets_v4/classes.rb', line 7356

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)


7348
7349
7350
# File 'lib/google/apis/sheets_v4/classes.rb', line 7348

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)


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