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
4322 4323 4324 |
# File 'lib/kaltura_types.rb', line 4322 def comments @comments end |
#created_at ⇒ Object
Returns the value of attribute created_at.
4324 4325 4326 |
# File 'lib/kaltura_types.rb', line 4324 def created_at @created_at end |
#flag_type ⇒ Object
Returns the value of attribute flag_type.
4323 4324 4325 |
# File 'lib/kaltura_types.rb', line 4323 def flag_type @flag_type end |
#flagged_entry_id ⇒ Object
If moderation flag is set for entry, this is the flagged entry id
4313 4314 4315 |
# File 'lib/kaltura_types.rb', line 4313 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
4316 4317 4318 |
# File 'lib/kaltura_types.rb', line 4316 def flagged_user_id @flagged_user_id end |
#id ⇒ Object
Moderation flag id
4303 4304 4305 |
# File 'lib/kaltura_types.rb', line 4303 def id @id end |
#moderation_object_type ⇒ Object
The type of the moderation flag (entry or user)
4310 4311 4312 |
# File 'lib/kaltura_types.rb', line 4310 def moderation_object_type @moderation_object_type end |
#partner_id ⇒ Object
Returns the value of attribute partner_id.
4304 4305 4306 |
# File 'lib/kaltura_types.rb', line 4304 def partner_id @partner_id end |
#status ⇒ Object
The moderation flag status
4319 4320 4321 |
# File 'lib/kaltura_types.rb', line 4319 def status @status end |
#updated_at ⇒ Object
Returns the value of attribute updated_at.
4325 4326 4327 |
# File 'lib/kaltura_types.rb', line 4325 def updated_at @updated_at end |
#user_id ⇒ Object
The user id that added the moderation flag
4307 4308 4309 |
# File 'lib/kaltura_types.rb', line 4307 def user_id @user_id end |
Instance Method Details
#from_xml(xml_element) ⇒ Object
4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 |
# File 'lib/kaltura_types.rb', line 4343 def from_xml(xml_element) super self.id = xml_element.elements['id'].text self.partner_id = xml_element.elements['partnerId'].text self.user_id = xml_element.elements['userId'].text self.moderation_object_type = xml_element.elements['moderationObjectType'].text self.flagged_entry_id = xml_element.elements['flaggedEntryId'].text self.flagged_user_id = xml_element.elements['flaggedUserId'].text self.status = xml_element.elements['status'].text self.comments = xml_element.elements['comments'].text self.flag_type = xml_element.elements['flagType'].text self.created_at = xml_element.elements['createdAt'].text self.updated_at = xml_element.elements['updatedAt'].text end |