Class: Kaltura::KalturaServiceActionCall
- Inherits:
-
Object
- Object
- Kaltura::KalturaServiceActionCall
- Defined in:
- lib/kaltura_client_base.rb
Instance Attribute Summary collapse
-
#action ⇒ Object
Returns the value of attribute action.
-
#files ⇒ Object
Returns the value of attribute files.
-
#params ⇒ Object
Returns the value of attribute params.
-
#return_type ⇒ Object
Returns the value of attribute return_type.
-
#service ⇒ Object
Returns the value of attribute service.
Instance Method Summary collapse
- #get_files_for_multirequest(multirequest_index) ⇒ Object
- #get_params_for_multirequest(multirequest_index) ⇒ Object
-
#initialize(service, action, return_type, params, files) ⇒ KalturaServiceActionCall
constructor
A new instance of KalturaServiceActionCall.
- #parse_params(params) ⇒ Object
Constructor Details
#initialize(service, action, return_type, params, files) ⇒ KalturaServiceActionCall
Returns a new instance of KalturaServiceActionCall.
462 463 464 465 466 467 468 |
# File 'lib/kaltura_client_base.rb', line 462 def initialize(service, action, return_type, params, files) @service = service @action = action @return_type = return_type @params = parse_params(params) @files = files end |
Instance Attribute Details
#action ⇒ Object
Returns the value of attribute action.
457 458 459 |
# File 'lib/kaltura_client_base.rb', line 457 def action @action end |
#files ⇒ Object
Returns the value of attribute files.
460 461 462 |
# File 'lib/kaltura_client_base.rb', line 460 def files @files end |
#params ⇒ Object
Returns the value of attribute params.
459 460 461 |
# File 'lib/kaltura_client_base.rb', line 459 def params @params end |
#return_type ⇒ Object
Returns the value of attribute return_type.
458 459 460 |
# File 'lib/kaltura_client_base.rb', line 458 def return_type @return_type end |
#service ⇒ Object
Returns the value of attribute service.
456 457 458 |
# File 'lib/kaltura_client_base.rb', line 456 def service @service end |
Instance Method Details
#get_files_for_multirequest(multirequest_index) ⇒ Object
493 494 495 496 497 498 499 |
# File 'lib/kaltura_client_base.rb', line 493 def get_files_for_multirequest(multirequest_index) multirequest_params = {} @files.each do |key, value| multirequest_params[multirequest_index.to_s + ":" + key] = value end return multirequest_params end |
#get_params_for_multirequest(multirequest_index) ⇒ Object
482 483 484 485 486 487 488 489 490 491 |
# File 'lib/kaltura_client_base.rb', line 482 def get_params_for_multirequest(multirequest_index) multirequest_params = {} multirequest_params[multirequest_index.to_s] = {} multirequest_params[multirequest_index.to_s]["service"] = @service multirequest_params[multirequest_index.to_s]["action"] = @action @params.each do |key, value| multirequest_params[multirequest_index.to_s][key] = value end return multirequest_params end |
#parse_params(params) ⇒ Object
470 471 472 473 474 475 476 477 478 479 480 |
# File 'lib/kaltura_client_base.rb', line 470 def parse_params(params) new_params = {} params.each do |key, val| if val.kind_of? Hash new_params[key] = parse_params(val) else new_params[key] = val end end return new_params end |