Class: Google::Apis::CalendarV3::Event::Creator

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/calendar_v3/classes.rb,
generated/google/apis/calendar_v3/representations.rb,
generated/google/apis/calendar_v3/representations.rb

Overview

The creator of the event. Read-only.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Creator

Returns a new instance of Creator



1400
1401
1402
# File 'generated/google/apis/calendar_v3/classes.rb', line 1400

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#display_nameString

The creator's name, if available. Corresponds to the JSON property displayName

Returns:

  • (String)


1380
1381
1382
# File 'generated/google/apis/calendar_v3/classes.rb', line 1380

def display_name
  @display_name
end

#emailString

The creator's email address, if available. Corresponds to the JSON property email

Returns:

  • (String)


1385
1386
1387
# File 'generated/google/apis/calendar_v3/classes.rb', line 1385

def email
  @email
end

#idString

The creator's Profile ID, if available. It corresponds to the id field in the People collection of the Google+ API Corresponds to the JSON property id

Returns:

  • (String)


1391
1392
1393
# File 'generated/google/apis/calendar_v3/classes.rb', line 1391

def id
  @id
end

#selfBoolean Also known as: self?

Whether the creator corresponds to the calendar on which this copy of the event appears. Read-only. The default is False. Corresponds to the JSON property self

Returns:

  • (Boolean)


1397
1398
1399
# File 'generated/google/apis/calendar_v3/classes.rb', line 1397

def self
  @self
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1405
1406
1407
1408
1409
1410
# File 'generated/google/apis/calendar_v3/classes.rb', line 1405

def update!(**args)
  @display_name = args[:display_name] if args.key?(:display_name)
  @email = args[:email] if args.key?(:email)
  @id = args[:id] if args.key?(:id)
  @self = args[:self] if args.key?(:self)
end