Class: Kaltura::KalturaDropFolderContentFileHandlerConfig

Inherits:
KalturaDropFolderFileHandlerConfig show all
Defined in:
lib/kaltura_plugins/kaltura_drop_folder_client_plugin.rb

Instance Attribute Summary collapse

Attributes inherited from KalturaDropFolderFileHandlerConfig

#handler_type

Attributes inherited from KalturaObjectBase

#object_type, #related_objects

Instance Method Summary collapse

Methods inherited from KalturaObjectBase

#camelcase, #to_b, #to_params

Instance Attribute Details

#content_match_policyObject

Returns the value of attribute content_match_policy.



690
691
692
# File 'lib/kaltura_plugins/kaltura_drop_folder_client_plugin.rb', line 690

def content_match_policy
  @content_match_policy
end

#slug_regexObject

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.



695
696
697
# File 'lib/kaltura_plugins/kaltura_drop_folder_client_plugin.rb', line 695

def slug_regex
  @slug_regex
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



701
702
703
704
705
706
707
708
709
# File 'lib/kaltura_plugins/kaltura_drop_folder_client_plugin.rb', line 701

def from_xml(xml_element)
	super
	if xml_element.elements['contentMatchPolicy'] != nil
		self.content_match_policy = xml_element.elements['contentMatchPolicy'].text
	end
	if xml_element.elements['slugRegex'] != nil
		self.slug_regex = xml_element.elements['slugRegex'].text
	end
end