Class: Kaltura::KalturaScheduleEventResource

Inherits:
KalturaObjectBase show all
Defined in:
lib/kaltura_plugins/kaltura_schedule_client_plugin.rb

Instance Attribute Summary collapse

Attributes inherited from KalturaObjectBase

#object_type, #related_objects

Instance Method Summary collapse

Methods inherited from KalturaObjectBase

#camelcase, #to_b, #to_params

Instance Attribute Details

#created_atObject

Creation date as Unix timestamp (In seconds)



465
466
467
# File 'lib/kaltura_plugins/kaltura_schedule_client_plugin.rb', line 465

def created_at
  @created_at
end

#event_idObject

Returns the value of attribute event_id.



461
462
463
# File 'lib/kaltura_plugins/kaltura_schedule_client_plugin.rb', line 461

def event_id
  @event_id
end

#partner_idObject

Returns the value of attribute partner_id.



463
464
465
# File 'lib/kaltura_plugins/kaltura_schedule_client_plugin.rb', line 463

def partner_id
  @partner_id
end

#resource_idObject

Returns the value of attribute resource_id.



462
463
464
# File 'lib/kaltura_plugins/kaltura_schedule_client_plugin.rb', line 462

def resource_id
  @resource_id
end

#updated_atObject

Last update as Unix timestamp (In seconds)



467
468
469
# File 'lib/kaltura_plugins/kaltura_schedule_client_plugin.rb', line 467

def updated_at
  @updated_at
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
# File 'lib/kaltura_plugins/kaltura_schedule_client_plugin.rb', line 485

def from_xml(xml_element)
  super
  if xml_element.elements['eventId'] != nil
    self.event_id = xml_element.elements['eventId'].text
  end
  if xml_element.elements['resourceId'] != nil
    self.resource_id = xml_element.elements['resourceId'].text
  end
  if xml_element.elements['partnerId'] != nil
    self.partner_id = xml_element.elements['partnerId'].text
  end
  if xml_element.elements['createdAt'] != nil
    self.created_at = xml_element.elements['createdAt'].text
  end
  if xml_element.elements['updatedAt'] != nil
    self.updated_at = xml_element.elements['updatedAt'].text
  end
end