Class: Google::Apis::CalendarV3::Event::Organizer

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 organizer of the event. If the organizer is also an attendee, this is indicated with a separate entry in attendees with the organizer field set to True. To change the organizer, use the move operation. Read-only, except when importing an event.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Organizer

Returns a new instance of Organizer.



1566
1567
1568
# File 'lib/google/apis/calendar_v3/classes.rb', line 1566

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

Instance Attribute Details

#display_nameString

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

Returns:

  • (String)


1546
1547
1548
# File 'lib/google/apis/calendar_v3/classes.rb', line 1546

def display_name
  @display_name
end

#emailString

The organizer's email address, if available. It must be a valid email address as per RFC5322. Corresponds to the JSON property email

Returns:

  • (String)


1552
1553
1554
# File 'lib/google/apis/calendar_v3/classes.rb', line 1552

def email
  @email
end

#idString

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

Returns:

  • (String)


1557
1558
1559
# File 'lib/google/apis/calendar_v3/classes.rb', line 1557

def id
  @id
end

#selfBoolean Also known as: self?

Whether the organizer 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)


1563
1564
1565
# File 'lib/google/apis/calendar_v3/classes.rb', line 1563

def self
  @self
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1571
1572
1573
1574
1575
1576
# File 'lib/google/apis/calendar_v3/classes.rb', line 1571

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