Class: Kaltura::KalturaScheduler
- Inherits:
-
KalturaObjectBase
- Object
- KalturaObjectBase
- Kaltura::KalturaScheduler
- Defined in:
- lib/kaltura_types.rb
Instance Attribute Summary collapse
-
#configs ⇒ Object
Array of the last configs.
-
#configured_id ⇒ Object
The id as configured in the batch config.
-
#created_at ⇒ Object
creation time.
-
#host ⇒ Object
The host name.
-
#id ⇒ Object
The id of the Scheduler.
-
#last_status ⇒ Object
last status time.
-
#last_status_str ⇒ Object
last status formated.
-
#name ⇒ Object
The scheduler name.
-
#statuses ⇒ Object
Array of the last statuses.
-
#workers ⇒ Object
Array of the workers.
Attributes inherited from KalturaObjectBase
#object_type, #related_objects
Instance Method Summary collapse
Methods inherited from KalturaObjectBase
Instance Attribute Details
#configs ⇒ Object
Array of the last configs
5433 5434 5435 |
# File 'lib/kaltura_types.rb', line 5433 def configs @configs end |
#configured_id ⇒ Object
The id as configured in the batch config
5421 5422 5423 |
# File 'lib/kaltura_types.rb', line 5421 def configured_id @configured_id end |
#created_at ⇒ Object
creation time
5439 5440 5441 |
# File 'lib/kaltura_types.rb', line 5439 def created_at @created_at end |
#host ⇒ Object
The host name
5427 5428 5429 |
# File 'lib/kaltura_types.rb', line 5427 def host @host end |
#id ⇒ Object
The id of the Scheduler
5418 5419 5420 |
# File 'lib/kaltura_types.rb', line 5418 def id @id end |
#last_status ⇒ Object
last status time
5442 5443 5444 |
# File 'lib/kaltura_types.rb', line 5442 def last_status @last_status end |
#last_status_str ⇒ Object
last status formated
5445 5446 5447 |
# File 'lib/kaltura_types.rb', line 5445 def last_status_str @last_status_str end |
#name ⇒ Object
The scheduler name
5424 5425 5426 |
# File 'lib/kaltura_types.rb', line 5424 def name @name end |
#statuses ⇒ Object
Array of the last statuses
5430 5431 5432 |
# File 'lib/kaltura_types.rb', line 5430 def statuses @statuses end |
#workers ⇒ Object
Array of the workers
5436 5437 5438 |
# File 'lib/kaltura_types.rb', line 5436 def workers @workers end |
Instance Method Details
#from_xml(xml_element) ⇒ Object
5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 |
# File 'lib/kaltura_types.rb', line 5460 def from_xml(xml_element) super self.id = xml_element.elements['id'].text self.configured_id = xml_element.elements['configuredId'].text self.name = xml_element.elements['name'].text self.host = xml_element.elements['host'].text self.statuses = KalturaClientBase.object_from_xml(xml_element.elements['statuses'], 'KalturaSchedulerStatus') self.configs = KalturaClientBase.object_from_xml(xml_element.elements['configs'], 'KalturaSchedulerConfig') self.workers = KalturaClientBase.object_from_xml(xml_element.elements['workers'], 'KalturaSchedulerWorker') self.created_at = xml_element.elements['createdAt'].text self.last_status = xml_element.elements['lastStatus'].text self.last_status_str = xml_element.elements['lastStatusStr'].text end |