Class: Kaltura::KalturaRatingCount

Inherits:
KalturaObjectBase show all
Defined in:
lib/kaltura_plugins/kaltura_rating_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

#countObject

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_idObject

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

#rankObject

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