Class: Google::Apis::CalendarV3::EventAttendee

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

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) ⇒ EventAttendee

Returns a new instance of EventAttendee.



1287
1288
1289
# File 'generated/google/apis/calendar_v3/classes.rb', line 1287

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

Instance Attribute Details

#additional_guestsFixnum

Number of additional guests. Optional. The default is 0. Corresponds to the JSON property additionalGuests

Returns:

  • (Fixnum)


1228
1229
1230
# File 'generated/google/apis/calendar_v3/classes.rb', line 1228

def additional_guests
  @additional_guests
end

#commentString

The attendee's response comment. Optional. Corresponds to the JSON property comment

Returns:

  • (String)


1233
1234
1235
# File 'generated/google/apis/calendar_v3/classes.rb', line 1233

def comment
  @comment
end

#display_nameString

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

Returns:

  • (String)


1238
1239
1240
# File 'generated/google/apis/calendar_v3/classes.rb', line 1238

def display_name
  @display_name
end

#emailString

The attendee's email address, if available. This field must be present when adding an attendee. It must be a valid email address as per RFC5322. Corresponds to the JSON property email

Returns:

  • (String)


1244
1245
1246
# File 'generated/google/apis/calendar_v3/classes.rb', line 1244

def email
  @email
end

#idString

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

Returns:

  • (String)


1250
1251
1252
# File 'generated/google/apis/calendar_v3/classes.rb', line 1250

def id
  @id
end

#optionalBoolean Also known as: optional?

Whether this is an optional attendee. Optional. The default is False. Corresponds to the JSON property optional

Returns:

  • (Boolean)


1255
1256
1257
# File 'generated/google/apis/calendar_v3/classes.rb', line 1255

def optional
  @optional
end

#organizerBoolean Also known as: organizer?

Whether the attendee is the organizer of the event. Read-only. The default is False. Corresponds to the JSON property organizer

Returns:

  • (Boolean)


1262
1263
1264
# File 'generated/google/apis/calendar_v3/classes.rb', line 1262

def organizer
  @organizer
end

#resourceBoolean Also known as: resource?

Whether the attendee is a resource. Read-only. The default is False. Corresponds to the JSON property resource

Returns:

  • (Boolean)


1268
1269
1270
# File 'generated/google/apis/calendar_v3/classes.rb', line 1268

def resource
  @resource
end

#response_statusString

The attendee's response status. Possible values are:

  • "needsAction" - The attendee has not responded to the invitation.
  • "declined" - The attendee has declined the invitation.
  • "tentative" - The attendee has tentatively accepted the invitation.
  • "accepted" - The attendee has accepted the invitation. Corresponds to the JSON property responseStatus

Returns:

  • (String)


1278
1279
1280
# File 'generated/google/apis/calendar_v3/classes.rb', line 1278

def response_status
  @response_status
end

#selfBoolean Also known as: self?

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

Returns:

  • (Boolean)


1284
1285
1286
# File 'generated/google/apis/calendar_v3/classes.rb', line 1284

def self
  @self
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
# File 'generated/google/apis/calendar_v3/classes.rb', line 1292

def update!(**args)
  @additional_guests = args[:additional_guests] if args.key?(:additional_guests)
  @comment = args[:comment] if args.key?(:comment)
  @display_name = args[:display_name] if args.key?(:display_name)
  @email = args[:email] if args.key?(:email)
  @id = args[:id] if args.key?(:id)
  @optional = args[:optional] if args.key?(:optional)
  @organizer = args[:organizer] if args.key?(:organizer)
  @resource = args[:resource] if args.key?(:resource)
  @response_status = args[:response_status] if args.key?(:response_status)
  @self = args[:self] if args.key?(:self)
end