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
7954 7955 7956 |
# File 'lib/kaltura_types.rb', line 7954 def comments @comments end |
#created_at ⇒ Object
Returns the value of attribute created_at.
7956 7957 7958 |
# File 'lib/kaltura_types.rb', line 7956 def created_at @created_at end |
#flag_type ⇒ Object
Returns the value of attribute flag_type.
7955 7956 7957 |
# File 'lib/kaltura_types.rb', line 7955 def flag_type @flag_type end |
#flagged_entry_id ⇒ Object
If moderation flag is set for entry, this is the flagged entry id
7948 7949 7950 |
# File 'lib/kaltura_types.rb', line 7948 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
7950 7951 7952 |
# File 'lib/kaltura_types.rb', line 7950 def flagged_user_id @flagged_user_id end |
#id ⇒ Object
Moderation flag id
7941 7942 7943 |
# File 'lib/kaltura_types.rb', line 7941 def id @id end |
#moderation_object_type ⇒ Object
The type of the moderation flag (entry or user)
7946 7947 7948 |
# File 'lib/kaltura_types.rb', line 7946 def moderation_object_type @moderation_object_type end |
#partner_id ⇒ Object
Returns the value of attribute partner_id.
7942 7943 7944 |
# File 'lib/kaltura_types.rb', line 7942 def partner_id @partner_id end |
#status ⇒ Object
The moderation flag status
7952 7953 7954 |
# File 'lib/kaltura_types.rb', line 7952 def status @status end |
#updated_at ⇒ Object
Returns the value of attribute updated_at.
7957 7958 7959 |
# File 'lib/kaltura_types.rb', line 7957 def updated_at @updated_at end |
#user_id ⇒ Object
The user id that added the moderation flag
7944 7945 7946 |
# File 'lib/kaltura_types.rb', line 7944 def user_id @user_id end |
Instance Method Details
#from_xml(xml_element) ⇒ Object
7975 7976 7977 7978 7979 7980 7981 7982 7983 7984 7985 7986 7987 7988 7989 7990 7991 7992 7993 7994 7995 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005 8006 8007 8008 8009 8010 |
# File 'lib/kaltura_types.rb', line 7975 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 |