Class: Kaltura::KalturaDropFolderContentFileHandlerConfig
- Inherits:
-
KalturaDropFolderFileHandlerConfig
- Object
- KalturaObjectBase
- KalturaDropFolderFileHandlerConfig
- Kaltura::KalturaDropFolderContentFileHandlerConfig
- Defined in:
- lib/kaltura_plugins/kaltura_drop_folder_client_plugin.rb
Instance Attribute Summary collapse
-
#content_match_policy ⇒ Object
Returns the value of attribute content_match_policy.
-
#slug_regex ⇒ Object
Regular expression that defines valid file names to be handled.
Attributes inherited from KalturaDropFolderFileHandlerConfig
Attributes inherited from KalturaObjectBase
#object_type, #related_objects
Instance Method Summary collapse
Methods inherited from KalturaObjectBase
Instance Attribute Details
#content_match_policy ⇒ Object
Returns the value of attribute content_match_policy.
524 525 526 |
# File 'lib/kaltura_plugins/kaltura_drop_folder_client_plugin.rb', line 524 def content_match_policy @content_match_policy end |
#slug_regex ⇒ Object
Regular expression that defines valid file names to be handled. The following might be extracted from the file name and used if defined: - (?P<referenceId>w+) - will be used as the drop folder file’s parsed slug. - (?P<flavorName>w+) - will be used as the drop folder file’s parsed flavor.
530 531 532 |
# File 'lib/kaltura_plugins/kaltura_drop_folder_client_plugin.rb', line 530 def slug_regex @slug_regex end |
Instance Method Details
#from_xml(xml_element) ⇒ Object
536 537 538 539 540 |
# File 'lib/kaltura_plugins/kaltura_drop_folder_client_plugin.rb', line 536 def from_xml(xml_element) super self.content_match_policy = xml_element.elements['contentMatchPolicy'].text self.slug_regex = xml_element.elements['slugRegex'].text end |