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
5485 5486 5487 |
# File 'lib/kaltura_types.rb', line 5485 def configs @configs end |
#configured_id ⇒ Object
The id as configured in the batch config
5477 5478 5479 |
# File 'lib/kaltura_types.rb', line 5477 def configured_id @configured_id end |
#created_at ⇒ Object
creation time
5489 5490 5491 |
# File 'lib/kaltura_types.rb', line 5489 def created_at @created_at end |
#host ⇒ Object
The host name
5481 5482 5483 |
# File 'lib/kaltura_types.rb', line 5481 def host @host end |
#id ⇒ Object
The id of the Scheduler
5475 5476 5477 |
# File 'lib/kaltura_types.rb', line 5475 def id @id end |
#last_status ⇒ Object
last status time
5491 5492 5493 |
# File 'lib/kaltura_types.rb', line 5491 def last_status @last_status end |
#last_status_str ⇒ Object
last status formated
5493 5494 5495 |
# File 'lib/kaltura_types.rb', line 5493 def last_status_str @last_status_str end |
#name ⇒ Object
The scheduler name
5479 5480 5481 |
# File 'lib/kaltura_types.rb', line 5479 def name @name end |
#statuses ⇒ Object
Array of the last statuses
5483 5484 5485 |
# File 'lib/kaltura_types.rb', line 5483 def statuses @statuses end |
#workers ⇒ Object
Array of the workers
5487 5488 5489 |
# File 'lib/kaltura_types.rb', line 5487 def workers @workers end |
Instance Method Details
#from_xml(xml_element) ⇒ Object
5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 |
# File 'lib/kaltura_types.rb', line 5508 def from_xml(xml_element) super if xml_element.elements['id'] != nil self.id = xml_element.elements['id'].text end if xml_element.elements['configuredId'] != nil self.configured_id = xml_element.elements['configuredId'].text end if xml_element.elements['name'] != nil self.name = xml_element.elements['name'].text end if xml_element.elements['host'] != nil self.host = xml_element.elements['host'].text end if xml_element.elements['statuses'] != nil self.statuses = KalturaClientBase.object_from_xml(xml_element.elements['statuses'], 'KalturaSchedulerStatus') end if xml_element.elements['configs'] != nil self.configs = KalturaClientBase.object_from_xml(xml_element.elements['configs'], 'KalturaSchedulerConfig') end if xml_element.elements['workers'] != nil self.workers = KalturaClientBase.object_from_xml(xml_element.elements['workers'], 'KalturaSchedulerWorker') end if xml_element.elements['createdAt'] != nil self.created_at = xml_element.elements['createdAt'].text end if xml_element.elements['lastStatus'] != nil self.last_status = xml_element.elements['lastStatus'].text end if xml_element.elements['lastStatusStr'] != nil self.last_status_str = xml_element.elements['lastStatusStr'].text end end |