Class: Kaltura::KalturaMetadataProfileField

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

Instance Attribute Summary collapse

Attributes inherited from KalturaObjectBase

#object_type, #related_objects

Instance Method Summary collapse

Methods inherited from KalturaObjectBase

#camelcase, #to_b, #to_params

Instance Attribute Details

#idObject

Returns the value of attribute id.



254
255
256
# File 'lib/kaltura_plugins/kaltura_metadata_client_plugin.rb', line 254

def id
  @id
end

#keyObject

Returns the value of attribute key.



256
257
258
# File 'lib/kaltura_plugins/kaltura_metadata_client_plugin.rb', line 256

def key
  @key
end

#labelObject

Returns the value of attribute label.



257
258
259
# File 'lib/kaltura_plugins/kaltura_metadata_client_plugin.rb', line 257

def label
  @label
end

#x_pathObject

Returns the value of attribute x_path.



255
256
257
# File 'lib/kaltura_plugins/kaltura_metadata_client_plugin.rb', line 255

def x_path
  @x_path
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
# File 'lib/kaltura_plugins/kaltura_metadata_client_plugin.rb', line 263

def from_xml(xml_element)
	super
	if xml_element.elements['id'] != nil
		self.id = xml_element.elements['id'].text
	end
	if xml_element.elements['xPath'] != nil
		self.x_path = xml_element.elements['xPath'].text
	end
	if xml_element.elements['key'] != nil
		self.key = xml_element.elements['key'].text
	end
	if xml_element.elements['label'] != nil
		self.label = xml_element.elements['label'].text
	end
end