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
5637 5638 5639 |
# File 'lib/kaltura_types.rb', line 5637 def configs @configs end |
#configured_id ⇒ Object
The id as configured in the batch config
5629 5630 5631 |
# File 'lib/kaltura_types.rb', line 5629 def configured_id @configured_id end |
#created_at ⇒ Object
creation time
5641 5642 5643 |
# File 'lib/kaltura_types.rb', line 5641 def created_at @created_at end |
#host ⇒ Object
The host name
5633 5634 5635 |
# File 'lib/kaltura_types.rb', line 5633 def host @host end |
#id ⇒ Object
The id of the Scheduler
5627 5628 5629 |
# File 'lib/kaltura_types.rb', line 5627 def id @id end |
#last_status ⇒ Object
last status time
5643 5644 5645 |
# File 'lib/kaltura_types.rb', line 5643 def last_status @last_status end |
#last_status_str ⇒ Object
last status formated
5645 5646 5647 |
# File 'lib/kaltura_types.rb', line 5645 def last_status_str @last_status_str end |
#name ⇒ Object
The scheduler name
5631 5632 5633 |
# File 'lib/kaltura_types.rb', line 5631 def name @name end |
#statuses ⇒ Object
Array of the last statuses
5635 5636 5637 |
# File 'lib/kaltura_types.rb', line 5635 def statuses @statuses end |
#workers ⇒ Object
Array of the workers
5639 5640 5641 |
# File 'lib/kaltura_types.rb', line 5639 def workers @workers end |
Instance Method Details
#from_xml(xml_element) ⇒ Object
5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 |
# File 'lib/kaltura_types.rb', line 5660 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 |