Class: Kaltura::KalturaRatingCount
- Inherits:
-
KalturaObjectBase
- Object
- KalturaObjectBase
- Kaltura::KalturaRatingCount
- Defined in:
- lib/kaltura_plugins/kaltura_rating_client_plugin.rb
Instance Attribute Summary collapse
-
#count ⇒ Object
Returns the value of attribute count.
-
#entry_id ⇒ Object
Returns the value of attribute entry_id.
-
#rank ⇒ Object
Returns the value of attribute rank.
Attributes inherited from KalturaObjectBase
#object_type, #related_objects
Instance Method Summary collapse
Methods inherited from KalturaObjectBase
Instance Attribute Details
#count ⇒ Object
Returns the value of attribute count.
38 39 40 |
# File 'lib/kaltura_plugins/kaltura_rating_client_plugin.rb', line 38 def count @count end |
#entry_id ⇒ Object
Returns the value of attribute entry_id.
36 37 38 |
# File 'lib/kaltura_plugins/kaltura_rating_client_plugin.rb', line 36 def entry_id @entry_id end |
#rank ⇒ Object
Returns the value of attribute rank.
37 38 39 |
# File 'lib/kaltura_plugins/kaltura_rating_client_plugin.rb', line 37 def rank @rank 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_rating_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['rank'] != nil self.rank = xml_element.elements['rank'].text end if xml_element.elements['count'] != nil self.count = xml_element.elements['count'].text end end |