Class: Webex::Meeting::Attendee

Inherits:
Object
  • Object
show all
Includes:
Webex
Defined in:
lib/webex/meeting/attendee.rb

Overview

comment

Constant Summary

Constants included from Webex

CONFIGURATION, VERSION

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Webex

#env_attributes!, #option_required!

Constructor Details

#initialize(attributes = {}) ⇒ Attendee

attendees: [FullName1, EmailAddress: nil, PhoneCountry: nil, PhoneArea: nil, PhoneLocal: nil, PhoneExt: nil, TimeZone: nil, Language: nil, Locale: nil, AddToAddressBook: nil,

{FullName: FullName1, EmailAddress: nil, PhoneCountry: nil, PhoneArea: nil, PhoneLocal: nil, PhoneExt: nil, TimeZone: nil, Language: nil, Locale: nil, AddToAddressBook: nil},
{FullName: FullName1, EmailAddress: nil, PhoneCountry: nil, PhoneArea: nil, PhoneLocal: nil, PhoneExt: nil, TimeZone: nil, Language: nil, Locale: nil, AddToAddressBook: nil}]


11
12
13
14
15
# File 'lib/webex/meeting/attendee.rb', line 11

def initialize(attributes = {})
  attributes.each { |k, v| send("#{k}=", v) }
  env_attributes!
  option_required! :back_url, :meeting_key
end

Instance Attribute Details

#attendeesObject

Returns the value of attribute attendees.



6
7
8
# File 'lib/webex/meeting/attendee.rb', line 6

def attendees
  @attendees
end

#back_urlObject

Returns the value of attribute back_url.



6
7
8
# File 'lib/webex/meeting/attendee.rb', line 6

def back_url
  @back_url
end

#cancel_mailObject

Returns the value of attribute cancel_mail.



6
7
8
# File 'lib/webex/meeting/attendee.rb', line 6

def cancel_mail
  @cancel_mail
end

#emailObject

Returns the value of attribute email.



6
7
8
# File 'lib/webex/meeting/attendee.rb', line 6

def email
  @email
end

#invitationObject

Returns the value of attribute invitation.



6
7
8
# File 'lib/webex/meeting/attendee.rb', line 6

def invitation
  @invitation
end

#meeting_keyObject

Returns the value of attribute meeting_key.



6
7
8
# File 'lib/webex/meeting/attendee.rb', line 6

def meeting_key
  @meeting_key
end

Instance Method Details

#addObject



17
18
19
20
21
# File 'lib/webex/meeting/attendee.rb', line 17

def add
  option_required! :attendees
  { params: generate_params(api_type: 'AA'),
    url: URI.join(CONFIGURATION.host_url + PATH_URL) }
end

#deleteObject



23
24
25
26
27
# File 'lib/webex/meeting/attendee.rb', line 23

def delete
  option_required! :email
  { params: generate_params(api_type: 'DA'),
    url: URI.join(CONFIGURATION.host_url + PATH_URL) }
end

#detailObject



29
30
31
32
33
# File 'lib/webex/meeting/attendee.rb', line 29

def detail
  option_required! :email
  { params: generate_params(api_type: 'MD'),
    url: URI.join(CONFIGURATION.host_url + PATH_URL) }
end