Class: Webex::Meeting::Presenter

Inherits:
Object
  • Object
show all
Includes:
Webex
Defined in:
lib/webex/meeting/presenter.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 = {}) ⇒ Presenter

phones = nil, PhoneArea: nil, PhoneNumber: nil, PhoneExt: nil



10
11
12
13
14
# File 'lib/webex/meeting/presenter.rb', line 10

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

Instance Attribute Details

#back_urlObject

Returns the value of attribute back_url.



6
7
8
# File 'lib/webex/meeting/presenter.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/presenter.rb', line 6

def cancel_mail
  @cancel_mail
end

#emailObject

Returns the value of attribute email.



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

def email
  @email
end

#full_nameObject

Returns the value of attribute full_name.



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

def full_name
  @full_name
end

#invitationObject

Returns the value of attribute invitation.



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

def invitation
  @invitation
end

#meeting_keyObject

Returns the value of attribute meeting_key.



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

def meeting_key
  @meeting_key
end

#phonesObject

Returns the value of attribute phones.



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

def phones
  @phones
end

Instance Method Details

#addObject



16
17
18
19
20
# File 'lib/webex/meeting/presenter.rb', line 16

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

#deleteObject



22
23
24
25
# File 'lib/webex/meeting/presenter.rb', line 22

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