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.



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

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.



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

def slug_regex
  @slug_regex
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



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

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