Class: Webex::Meeting::Registration

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

Returns a new instance of Registration.



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

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

Instance Attribute Details

#address_1Object

Returns the value of attribute address_1.



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

def address_1
  @address_1
end

#address_2Object

Returns the value of attribute address_2.



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

def address_2
  @address_2
end

#back_urlObject

Returns the value of attribute back_url.



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

def back_url
  @back_url
end

#check_box_contentsObject

Returns the value of attribute check_box_contents.



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

def check_box_contents
  @check_box_contents
end

#cityObject

Returns the value of attribute city.



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

def city
  @city
end

#computer_nameObject

Returns the value of attribute computer_name.



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

def computer_name
  @computer_name
end

#countryObject

Returns the value of attribute country.



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

def country
  @country
end

Returns the value of attribute dropdown_list_selections.



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

def dropdown_list_selections
  @dropdown_list_selections
end

#email_addressObject

Returns the value of attribute email_address.



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

def email_address
  @email_address
end

#faxObject

Returns the value of attribute fax.



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

def fax
  @fax
end

#first_nameObject

Returns the value of attribute first_name.



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

def first_name
  @first_name
end

#job_titleObject

Returns the value of attribute job_title.



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

def job_title
  @job_title
end

#last_nameObject

Returns the value of attribute last_name.



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

def last_name
  @last_name
end

#meeting_keyObject

Returns the value of attribute meeting_key.



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

def meeting_key
  @meeting_key
end

#name_and_valuesObject

Returns the value of attribute name_and_values.



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

def name_and_values
  @name_and_values
end

#phone_numberObject

Returns the value of attribute phone_number.



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

def phone_number
  @phone_number
end

#radio_button_contentsObject

Returns the value of attribute radio_button_contents.



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

def radio_button_contents
  @radio_button_contents
end

#stateObject

Returns the value of attribute state.



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

def state
  @state
end

#text_box_contentsObject

Returns the value of attribute text_box_contents.



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

def text_box_contents
  @text_box_contents
end

#zip_codeObject

Returns the value of attribute zip_code.



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

def zip_code
  @zip_code
end

Instance Method Details

#formObject



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

def form
  option_required! :meeting_key
  { params: generate_params(api_type: 'GF'),
    url: URI.join(CONFIGURATION.host_url + PATH_URL) }
end

#registerObject



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

def register
  option_required! :meeting_key, :first_name, :last_name, :email_address, :job_title, :computer_name
  { params: generate_params(api_type: 'RM'),
    url: URI.join(CONFIGURATION.host_url + PATH_URL) }
end