Class: Webex::Meeting::Report

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

Overview

comment

Constant Summary

Constants included from Webex::Meeting

PATH_URL

Constants included from Webex

CONFIGURATION, VERSION

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Webex::Meeting

#post_url

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

#agendaObject

Returns the value of attribute agenda.



7
8
9
# File 'lib/webex/meeting/report.rb', line 7

def agenda
  @agenda
end

#back_urlObject

Returns the value of attribute back_url.



7
8
9
# File 'lib/webex/meeting/report.rb', line 7

def back_url
  @back_url
end

#dayObject

Returns the value of attribute day.



7
8
9
# File 'lib/webex/meeting/report.rb', line 7

def day
  @day
end

#descriptionObject

Returns the value of attribute description.



7
8
9
# File 'lib/webex/meeting/report.rb', line 7

def description
  @description
end

#destination_address_after_sessionObject

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_hoursObject

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_minutesObject

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_addressObject

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_passwordObject

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_sizeObject

Returns the value of attribute file_size.



7
8
9
# File 'lib/webex/meeting/report.rb', line 7

def file_size
  @file_size
end

#monthObject

Returns the value of attribute month.



7
8
9
# File 'lib/webex/meeting/report.rb', line 7

def month
  @month
end

#presenterObject

Returns the value of attribute presenter.



7
8
9
# File 'lib/webex/meeting/report.rb', line 7

def presenter
  @presenter
end

#recording_topicObject

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_typeObject

Returns the value of attribute recording_type.



7
8
9
# File 'lib/webex/meeting/report.rb', line 7

def recording_type
  @recording_type
end

#registrationObject

Returns the value of attribute registration.



7
8
9
# File 'lib/webex/meeting/report.rb', line 7

def registration
  @registration
end

#specify_urlObject

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_downloadObject

Returns the value of attribute view_download.



7
8
9
# File 'lib/webex/meeting/report.rb', line 7

def view_download
  @view_download
end

#yearObject

Returns the value of attribute year.



7
8
9
# File 'lib/webex/meeting/report.rb', line 7

def year
  @year
end

Instance Method Details

#createObject



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