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

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

Overview

The creator of the event. Read-only.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Creator

Returns a new instance of Creator.



1500
1501
1502
# File 'lib/google/apis/calendar_v3/classes.rb', line 1500

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)


1481
1482
1483
# File 'lib/google/apis/calendar_v3/classes.rb', line 1481

def display_name
  @display_name
end

#emailString

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

Returns:

  • (String)


1486
1487
1488
# File 'lib/google/apis/calendar_v3/classes.rb', line 1486

def email
  @email
end

#idString

The creator's Profile ID, if available. Corresponds to the JSON property id

Returns:

  • (String)


1491
1492
1493
# File 'lib/google/apis/calendar_v3/classes.rb', line 1491

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)


1497
1498
1499
# File 'lib/google/apis/calendar_v3/classes.rb', line 1497

def self
  @self
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1505
1506
1507
1508
1509
1510
# File 'lib/google/apis/calendar_v3/classes.rb', line 1505

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