Class: Kaltura::KalturaMetadataField
- Inherits:
-
KalturaStringField
- Object
- KalturaObjectBase
- KalturaValue
- KalturaStringValue
- KalturaStringField
- Kaltura::KalturaMetadataField
- Defined in:
- lib/kaltura_plugins/kaltura_metadata_client_plugin.rb
Instance Attribute Summary collapse
-
#profile_id ⇒ Object
Metadata profile id.
-
#profile_system_name ⇒ Object
Metadata profile system name.
-
#x_path ⇒ Object
May contain the full xpath to the field in three formats 1.
Attributes inherited from KalturaStringValue
Attributes inherited from KalturaValue
Attributes inherited from KalturaObjectBase
#object_type, #related_objects
Instance Method Summary collapse
Methods inherited from KalturaObjectBase
Instance Attribute Details
#profile_id ⇒ Object
Metadata profile id
788 789 790 |
# File 'lib/kaltura_plugins/kaltura_metadata_client_plugin.rb', line 788 def profile_id @profile_id end |
#profile_system_name ⇒ Object
Metadata profile system name
790 791 792 |
# File 'lib/kaltura_plugins/kaltura_metadata_client_plugin.rb', line 790 def profile_system_name @profile_system_name end |
#x_path ⇒ Object
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
786 787 788 |
# File 'lib/kaltura_plugins/kaltura_metadata_client_plugin.rb', line 786 def x_path @x_path end |
Instance Method Details
#from_xml(xml_element) ⇒ Object
796 797 798 799 800 801 802 803 804 805 806 807 |
# File 'lib/kaltura_plugins/kaltura_metadata_client_plugin.rb', line 796 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 |