Class: Webex::Meeting::Report
- Inherits:
-
Object
- Object
- Webex::Meeting::Report
- Includes:
- Webex, Webex::Meeting
- Defined in:
- lib/webex/meeting/report.rb
Overview
comment
Constant Summary
Constants included from Webex::Meeting
Constants included from Webex
Instance Attribute Summary collapse
-
#agenda ⇒ Object
Returns the value of attribute agenda.
-
#back_url ⇒ Object
Returns the value of attribute back_url.
-
#day ⇒ Object
Returns the value of attribute day.
-
#description ⇒ Object
Returns the value of attribute description.
-
#destination_address_after_session ⇒ Object
Returns the value of attribute destination_address_after_session.
-
#duration_hours ⇒ Object
Returns the value of attribute duration_hours.
-
#duration_minutes ⇒ Object
Returns the value of attribute duration_minutes.
-
#email_address ⇒ Object
Returns the value of attribute email_address.
-
#file_access_password ⇒ Object
Returns the value of attribute file_access_password.
-
#file_size ⇒ Object
Returns the value of attribute file_size.
-
#month ⇒ Object
Returns the value of attribute month.
-
#presenter ⇒ Object
Returns the value of attribute presenter.
-
#recording_topic ⇒ Object
Returns the value of attribute recording_topic.
-
#recording_type ⇒ Object
Returns the value of attribute recording_type.
-
#registration ⇒ Object
Returns the value of attribute registration.
-
#specify_url ⇒ Object
Returns the value of attribute specify_url.
-
#view_download ⇒ Object
Returns the value of attribute view_download.
-
#year ⇒ Object
Returns the value of attribute year.
Instance Method Summary collapse
- #create ⇒ Object
- #generate_params(overwrite_params = {}) ⇒ Object
-
#initialize(attributes = {}) ⇒ Report
constructor
phones = nil, PhoneArea: nil, PhoneNumber: nil, PhoneExt: nil.
Methods included from Webex::Meeting
Methods included from Webex
#env_attributes!, #option_required!
Constructor Details
#initialize(attributes = {}) ⇒ Report
phones = nil, PhoneArea: nil, PhoneNumber: nil, PhoneExt: nil
14 15 16 17 18 |
# File 'lib/webex/meeting/report.rb', line 14 def initialize(attributes = {}) attributes.each { |k, v| send("#{k}=", v) } env_attributes! option_required! :back_url end |
Instance Attribute Details
#agenda ⇒ Object
Returns the value of attribute agenda.
7 8 9 |
# File 'lib/webex/meeting/report.rb', line 7 def agenda @agenda end |
#back_url ⇒ Object
Returns the value of attribute back_url.
7 8 9 |
# File 'lib/webex/meeting/report.rb', line 7 def back_url @back_url end |
#day ⇒ Object
Returns the value of attribute day.
7 8 9 |
# File 'lib/webex/meeting/report.rb', line 7 def day @day end |
#description ⇒ Object
Returns the value of attribute description.
7 8 9 |
# File 'lib/webex/meeting/report.rb', line 7 def description @description end |
#destination_address_after_session ⇒ Object
Returns the value of attribute destination_address_after_session.
7 8 9 |
# File 'lib/webex/meeting/report.rb', line 7 def destination_address_after_session @destination_address_after_session end |
#duration_hours ⇒ Object
Returns the value of attribute duration_hours.
7 8 9 |
# File 'lib/webex/meeting/report.rb', line 7 def duration_hours @duration_hours end |
#duration_minutes ⇒ Object
Returns the value of attribute duration_minutes.
7 8 9 |
# File 'lib/webex/meeting/report.rb', line 7 def duration_minutes @duration_minutes end |
#email_address ⇒ Object
Returns the value of attribute email_address.
7 8 9 |
# File 'lib/webex/meeting/report.rb', line 7 def email_address @email_address end |
#file_access_password ⇒ Object
Returns the value of attribute file_access_password.
7 8 9 |
# File 'lib/webex/meeting/report.rb', line 7 def file_access_password @file_access_password end |
#file_size ⇒ Object
Returns the value of attribute file_size.
7 8 9 |
# File 'lib/webex/meeting/report.rb', line 7 def file_size @file_size end |
#month ⇒ Object
Returns the value of attribute month.
7 8 9 |
# File 'lib/webex/meeting/report.rb', line 7 def month @month end |
#presenter ⇒ Object
Returns the value of attribute presenter.
7 8 9 |
# File 'lib/webex/meeting/report.rb', line 7 def presenter @presenter end |
#recording_topic ⇒ Object
Returns the value of attribute recording_topic.
7 8 9 |
# File 'lib/webex/meeting/report.rb', line 7 def recording_topic @recording_topic end |
#recording_type ⇒ Object
Returns the value of attribute recording_type.
7 8 9 |
# File 'lib/webex/meeting/report.rb', line 7 def recording_type @recording_type end |
#registration ⇒ Object
Returns the value of attribute registration.
7 8 9 |
# File 'lib/webex/meeting/report.rb', line 7 def registration @registration end |
#specify_url ⇒ Object
Returns the value of attribute specify_url.
7 8 9 |
# File 'lib/webex/meeting/report.rb', line 7 def specify_url @specify_url end |
#view_download ⇒ Object
Returns the value of attribute view_download.
7 8 9 |
# File 'lib/webex/meeting/report.rb', line 7 def view_download @view_download end |
#year ⇒ Object
Returns the value of attribute year.
7 8 9 |
# File 'lib/webex/meeting/report.rb', line 7 def year @year end |
Instance Method Details
#create ⇒ Object
20 21 22 23 24 25 |
# File 'lib/webex/meeting/report.rb', line 20 def create option_required! :recording_topic res = Net::HTTP.post_form post_url, generate_params(api_type: 'CR') p res.body Hash[res.body.stringify_string.split('&').map! { |i| i.split('=') }] end |
#generate_params(overwrite_params = {}) ⇒ Object
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/webex/meeting/report.rb', line 27 def generate_params(overwrite_params = {}) result = {} result[:AT] = overwrite_params[:api_type] result[:RT] = recording_topic result[:UL] = specify_url result[:AG] = agenda result[:AR] = registration result[:DstURL] = destination_address_after_session result[:DS] = description result[:EM] = email_address result[:HR] = duration_hours result[:MI] = duration_minutes result[:MH] = month result[:DY] = day result[:YR] = year result[:PT] = presenter result[:PW] = file_access_password result[:SZ] = file_size result[:TP] = recording_type result[:VD] = view_download result[:BU] = back_url result.delete_if { |k, v| v.nil? } end |