Class: Kaltura::KalturaLike
- Inherits:
-
KalturaObjectBase
- Object
- KalturaObjectBase
- Kaltura::KalturaLike
- Defined in:
- lib/kaltura_plugins/kaltura_like_client_plugin.rb
Instance Attribute Summary collapse
-
#created_at ⇒ Object
The date of the like’s creation.
-
#entry_id ⇒ Object
The id of the entry that the like belongs to.
-
#user_id ⇒ Object
The id of user that the like belongs to.
Attributes inherited from KalturaObjectBase
#object_type, #related_objects
Instance Method Summary collapse
Methods inherited from KalturaObjectBase
Instance Attribute Details
#created_at ⇒ Object
The date of the like’s creation
41 42 43 |
# File 'lib/kaltura_plugins/kaltura_like_client_plugin.rb', line 41 def created_at @created_at end |
#entry_id ⇒ Object
The id of the entry that the like belongs to
37 38 39 |
# File 'lib/kaltura_plugins/kaltura_like_client_plugin.rb', line 37 def entry_id @entry_id end |
#user_id ⇒ Object
The id of user that the like belongs to
39 40 41 |
# File 'lib/kaltura_plugins/kaltura_like_client_plugin.rb', line 39 def user_id @user_id end |
Instance Method Details
#from_xml(xml_element) ⇒ Object
47 48 49 50 51 52 53 54 55 56 57 58 |
# File 'lib/kaltura_plugins/kaltura_like_client_plugin.rb', line 47 def from_xml(xml_element) super if xml_element.elements['entryId'] != nil self.entry_id = xml_element.elements['entryId'].text end if xml_element.elements['userId'] != nil self.user_id = xml_element.elements['userId'].text end if xml_element.elements['createdAt'] != nil self.created_at = xml_element.elements['createdAt'].text end end |