Class: Kaltura::KalturaModerationFlag
- Inherits:
-
KalturaObjectBase
- Object
- KalturaObjectBase
- Kaltura::KalturaModerationFlag
- Defined in:
- lib/kaltura_types.rb
Instance Attribute Summary collapse
-
#comments ⇒ Object
The comment that was added to the flag.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#flag_type ⇒ Object
Returns the value of attribute flag_type.
-
#flagged_entry_id ⇒ Object
If moderation flag is set for entry, this is the flagged entry id.
-
#flagged_user_id ⇒ Object
If moderation flag is set for user, this is the flagged user id.
-
#id ⇒ Object
Moderation flag id.
-
#moderation_object_type ⇒ Object
The type of the moderation flag (entry or user).
-
#partner_id ⇒ Object
Returns the value of attribute partner_id.
-
#status ⇒ Object
The moderation flag status.
-
#updated_at ⇒ Object
Returns the value of attribute updated_at.
-
#user_id ⇒ Object
The user id that added the moderation flag.
Attributes inherited from KalturaObjectBase
#object_type, #related_objects
Instance Method Summary collapse
Methods inherited from KalturaObjectBase
Instance Attribute Details
#comments ⇒ Object
The comment that was added to the flag
7849 7850 7851 |
# File 'lib/kaltura_types.rb', line 7849 def comments @comments end |
#created_at ⇒ Object
Returns the value of attribute created_at.
7851 7852 7853 |
# File 'lib/kaltura_types.rb', line 7851 def created_at @created_at end |
#flag_type ⇒ Object
Returns the value of attribute flag_type.
7850 7851 7852 |
# File 'lib/kaltura_types.rb', line 7850 def flag_type @flag_type end |
#flagged_entry_id ⇒ Object
If moderation flag is set for entry, this is the flagged entry id
7843 7844 7845 |
# File 'lib/kaltura_types.rb', line 7843 def flagged_entry_id @flagged_entry_id end |
#flagged_user_id ⇒ Object
If moderation flag is set for user, this is the flagged user id
7845 7846 7847 |
# File 'lib/kaltura_types.rb', line 7845 def flagged_user_id @flagged_user_id end |
#id ⇒ Object
Moderation flag id
7836 7837 7838 |
# File 'lib/kaltura_types.rb', line 7836 def id @id end |
#moderation_object_type ⇒ Object
The type of the moderation flag (entry or user)
7841 7842 7843 |
# File 'lib/kaltura_types.rb', line 7841 def moderation_object_type @moderation_object_type end |
#partner_id ⇒ Object
Returns the value of attribute partner_id.
7837 7838 7839 |
# File 'lib/kaltura_types.rb', line 7837 def partner_id @partner_id end |
#status ⇒ Object
The moderation flag status
7847 7848 7849 |
# File 'lib/kaltura_types.rb', line 7847 def status @status end |
#updated_at ⇒ Object
Returns the value of attribute updated_at.
7852 7853 7854 |
# File 'lib/kaltura_types.rb', line 7852 def updated_at @updated_at end |
#user_id ⇒ Object
The user id that added the moderation flag
7839 7840 7841 |
# File 'lib/kaltura_types.rb', line 7839 def user_id @user_id end |
Instance Method Details
#from_xml(xml_element) ⇒ Object
7870 7871 7872 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887 7888 7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905 |
# File 'lib/kaltura_types.rb', line 7870 def from_xml(xml_element) super if xml_element.elements['id'] != nil self.id = xml_element.elements['id'].text end if xml_element.elements['partnerId'] != nil self.partner_id = xml_element.elements['partnerId'].text end if xml_element.elements['userId'] != nil self.user_id = xml_element.elements['userId'].text end if xml_element.elements['moderationObjectType'] != nil self.moderation_object_type = xml_element.elements['moderationObjectType'].text end if xml_element.elements['flaggedEntryId'] != nil self.flagged_entry_id = xml_element.elements['flaggedEntryId'].text end if xml_element.elements['flaggedUserId'] != nil self.flagged_user_id = xml_element.elements['flaggedUserId'].text end if xml_element.elements['status'] != nil self.status = xml_element.elements['status'].text end if xml_element.elements['comments'] != nil self.comments = xml_element.elements['comments'].text end if xml_element.elements['flagType'] != nil self.flag_type = xml_element.elements['flagType'].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 |