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
5551 5552 5553 |
# File 'lib/kaltura_types.rb', line 5551 def configs @configs end |
#configured_id ⇒ Object
The id as configured in the batch config
5543 5544 5545 |
# File 'lib/kaltura_types.rb', line 5543 def configured_id @configured_id end |
#created_at ⇒ Object
creation time
5555 5556 5557 |
# File 'lib/kaltura_types.rb', line 5555 def created_at @created_at end |
#host ⇒ Object
The host name
5547 5548 5549 |
# File 'lib/kaltura_types.rb', line 5547 def host @host end |
#id ⇒ Object
The id of the Scheduler
5541 5542 5543 |
# File 'lib/kaltura_types.rb', line 5541 def id @id end |
#last_status ⇒ Object
last status time
5557 5558 5559 |
# File 'lib/kaltura_types.rb', line 5557 def last_status @last_status end |
#last_status_str ⇒ Object
last status formated
5559 5560 5561 |
# File 'lib/kaltura_types.rb', line 5559 def last_status_str @last_status_str end |
#name ⇒ Object
The scheduler name
5545 5546 5547 |
# File 'lib/kaltura_types.rb', line 5545 def name @name end |
#statuses ⇒ Object
Array of the last statuses
5549 5550 5551 |
# File 'lib/kaltura_types.rb', line 5549 def statuses @statuses end |
#workers ⇒ Object
Array of the workers
5553 5554 5555 |
# File 'lib/kaltura_types.rb', line 5553 def workers @workers end |
Instance Method Details
#from_xml(xml_element) ⇒ Object
5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 |
# File 'lib/kaltura_types.rb', line 5574 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 |