lib/webex/meeting/registration.rb in webex-0.0.1 vs lib/webex/meeting/registration.rb in webex-0.0.2

- old
+ new

@@ -1,10 +1,11 @@ module Webex module Meeting # comment class Registration include Webex + include Webex::Meeting attr_accessor :meeting_key, :back_url, :first_name, :last_name, :email_address, :job_title, :computer_name, :address_1, :address_2, :city, :state, :zip_code, :country, :phone_number, :fax, :name_and_values, :text_box_contents, :check_box_contents, :radio_button_contents, :dropdown_list_selections @@ -14,17 +15,17 @@ option_required! :back_url end def form option_required! :meeting_key - { params: generate_params(api_type: 'GF'), - url: URI.join(CONFIGURATION.host_url + PATH_URL) } + res = Net::HTTP.post_form post_url, generate_params(api_type: 'GF') + Hash[res.body.stringify_string.split('&').map! { |i| i.split('=') }] end 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) } + res = Net::HTTP.post_form post_url, generate_params(api_type: 'RM') + Hash[res.body.stringify_string.split('&').map! { |i| i.split('=') }] end private def name_and_value_params