Class: Kaltura::Service::ReportService
- Inherits:
-
BaseService
- Object
- BaseService
- Kaltura::Service::ReportService
- Defined in:
- lib/kaltura/service/report_service.rb
Instance Attribute Summary
Attributes inherited from BaseService
Instance Method Summary collapse
- #get_graphs(report_type, report_input_filter, dimension = '', object_ids = '') ⇒ Object
- #get_table(report_type, report_input_filter, pager, order = '', object_ids = '') ⇒ Object
- #get_total(report_type, report_input_filter, object_ids = '') ⇒ Object
- #get_url_for_report_as_csv(report_title, report_text, headers, report_type, report_input_filter, dimension = '', pager = nil, order = '', object_ids = '') ⇒ Object
Methods inherited from BaseService
Constructor Details
This class inherits a constructor from Kaltura::Service::BaseService
Instance Method Details
#get_graphs(report_type, report_input_filter, dimension = '', object_ids = '') ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/kaltura/service/report_service.rb', line 5 def get_graphs(report_type, report_input_filter, dimension='', object_ids='') kparams = {} client.add_param(kparams, 'reportType', report_type) client.add_param(kparams, 'reportInputFilter', report_input_filter) client.add_param(kparams, 'dimension', dimension) client.add_param(kparams, 'objectIds', object_ids) perform_requesT('report','getGraphs',kparams,false) end |
#get_table(report_type, report_input_filter, pager, order = '', object_ids = '') ⇒ Object
22 23 24 25 26 27 28 29 30 |
# File 'lib/kaltura/service/report_service.rb', line 22 def get_table(report_type, report_input_filter, pager, order='', object_ids='') kparams = {} client.add_param(kparams, 'reportType', report_type) client.add_param(kparams, 'reportInputFilter', report_input_filter) client.add_param(kparams, 'pager', pager) client.add_param(kparams, 'order', order) client.add_param(kparams, 'objectIds', object_ids) perform_request('report','getTable',kparams,false) end |
#get_total(report_type, report_input_filter, object_ids = '') ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/kaltura/service/report_service.rb', line 14 def get_total(report_type, report_input_filter, object_ids='') kparams = {} client.add_param(kparams, 'reportType', report_type) client.add_param(kparams, 'reportInputFilter', report_input_filter) client.add_param(kparams, 'objectIds', object_ids) perform_request('report','getTotal',kparams,false) end |
#get_url_for_report_as_csv(report_title, report_text, headers, report_type, report_input_filter, dimension = '', pager = nil, order = '', object_ids = '') ⇒ Object
32 33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/kaltura/service/report_service.rb', line 32 def get_url_for_report_as_csv(report_title, report_text, headers, report_type, report_input_filter, dimension='', pager=nil, order='', object_ids='') kparams = {} client.add_param(kparams, 'reportTitle', report_title) client.add_param(kparams, 'reportText', report_text) client.add_param(kparams, 'headers', headers) client.add_param(kparams, 'reportType', report_type) client.add_param(kparams, 'reportInputFilter', report_input_filter) client.add_param(kparams, 'dimension', dimension) client.add_param(kparams, 'pager', pager) client.add_param(kparams, 'order', order) client.add_param(kparams, 'objectIds', object_ids) perform_request('report','getUrlForReportAsCsv',kparams,false) end |