Class: Kaltura::Service::BaseService
- Inherits:
-
Object
- Object
- Kaltura::Service::BaseService
- Defined in:
- lib/kaltura/service/base_service.rb
Overview
Base Service is a method extraction refactoring performed on the Service module for the Velir branch of the kaltura-ruby library. Previously perform_request existed in each method of each service.
Direct Known Subclasses
AccessControlService, AdminUserService, BaseEntryService, BulkUploadService, CategoryService, ConversionProfileService, DataService, EmailIngestionProfileService, EntryAdminService, FileSyncService, FlavorAssetService, FlavorParamsOutputService, FlavorParamsService, LiveStreamService, MediaInfoService, MediaService, MixingService, NotificationService, PartnerService, PlaylistService, ReportService, SearchService, SessionService, StatsService, SyndicationFeedService, SystemPartnerService, SystemService, SystemUserService, UiConfService, UploadService, UserService, WidgetService, XInternalService
Instance Attribute Summary collapse
-
#client ⇒ Object
Returns the value of attribute client.
Instance Method Summary collapse
-
#initialize(client) ⇒ BaseService
constructor
A new instance of BaseService.
-
#perform_request(service_class, service_action, paramters, allow_multirequest = true) ⇒ Object
Enqueues the service class, action, and paramters onto the client object and then informs the client object to perform pop an action off the queue.
Constructor Details
#initialize(client) ⇒ BaseService
Returns a new instance of BaseService.
13 14 15 |
# File 'lib/kaltura/service/base_service.rb', line 13 def initialize(client) @client = client end |
Instance Attribute Details
#client ⇒ Object
Returns the value of attribute client.
11 12 13 |
# File 'lib/kaltura/service/base_service.rb', line 11 def client @client end |
Instance Method Details
#perform_request(service_class, service_action, paramters, allow_multirequest = true) ⇒ Object
Enqueues the service class, action, and paramters onto the client object and then informs the client object to perform pop an action off the queue.
32 33 34 35 36 37 38 39 |
# File 'lib/kaltura/service/base_service.rb', line 32 def perform_request(service_class,service_action,paramters,allow_multirequest=true) if allow_multirequest == false && client.is_multirequest return nil else client.queue_service_action_call(service_class,service_action,paramters) return client.do_queue end end |