Class: Kaltura::KalturaCompareMetadataCondition

Inherits:
KalturaCompareCondition show all
Defined in:
lib/kaltura_plugins/kaltura_metadata_client_plugin.rb

Instance Attribute Summary collapse

Attributes inherited from KalturaCompareCondition

#comparison, #value

Attributes inherited from KalturaCondition

#description, #not, #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

#profile_idObject

Metadata profile id



526
527
528
# File 'lib/kaltura_plugins/kaltura_metadata_client_plugin.rb', line 526

def profile_id
  @profile_id
end

#profile_system_nameObject

Metadata profile system name



528
529
530
# File 'lib/kaltura_plugins/kaltura_metadata_client_plugin.rb', line 528

def profile_system_name
  @profile_system_name
end

#x_pathObject

May contain the full xpath to the field in three formats 1. Slashed xPath, e.g. /metadata/myElementName 2. Using local-name function, e.g. /[local-name()=‘metadata’]/ 3. Using only the field name, e.g. myElementName, it will be searched as //myElementName



524
525
526
# File 'lib/kaltura_plugins/kaltura_metadata_client_plugin.rb', line 524

def x_path
  @x_path
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



534
535
536
537
538
539
540
541
542
543
544
545
# File 'lib/kaltura_plugins/kaltura_metadata_client_plugin.rb', line 534

def from_xml(xml_element)
	super
	if xml_element.elements['xPath'] != nil
		self.x_path = xml_element.elements['xPath'].text
	end
	if xml_element.elements['profileId'] != nil
		self.profile_id = xml_element.elements['profileId'].text
	end
	if xml_element.elements['profileSystemName'] != nil
		self.profile_system_name = xml_element.elements['profileSystemName'].text
	end
end