Class: Kaltura::KalturaAttachmentAsset

Inherits:
KalturaAsset show all
Defined in:
lib/kaltura_plugins/kaltura_attachment_client_plugin.rb

Direct Known Subclasses

KalturaTranscriptAsset

Instance Attribute Summary collapse

Attributes inherited from KalturaAsset

#actual_source_asset_params_ids, #created_at, #deleted_at, #description, #entry_id, #file_ext, #id, #partner_data, #partner_description, #partner_id, #size, #size_in_bytes, #tags, #updated_at, #version

Attributes inherited from KalturaObjectBase

#object_type, #related_objects

Instance Method Summary collapse

Methods inherited from KalturaObjectBase

#camelcase, #to_b, #to_params

Instance Attribute Details

#filenameObject

The filename of the attachment asset content



61
62
63
# File 'lib/kaltura_plugins/kaltura_attachment_client_plugin.rb', line 61

def filename
  @filename
end

#formatObject

The attachment format



65
66
67
# File 'lib/kaltura_plugins/kaltura_attachment_client_plugin.rb', line 65

def format
  @format
end

#statusObject

The status of the asset



67
68
69
# File 'lib/kaltura_plugins/kaltura_attachment_client_plugin.rb', line 67

def status
  @status
end

#titleObject

Attachment asset title



63
64
65
# File 'lib/kaltura_plugins/kaltura_attachment_client_plugin.rb', line 63

def title
  @title
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# File 'lib/kaltura_plugins/kaltura_attachment_client_plugin.rb', line 73

def from_xml(xml_element)
	super
	if xml_element.elements['filename'] != nil
		self.filename = xml_element.elements['filename'].text
	end
	if xml_element.elements['title'] != nil
		self.title = xml_element.elements['title'].text
	end
	if xml_element.elements['format'] != nil
		self.format = xml_element.elements['format'].text
	end
	if xml_element.elements['status'] != nil
		self.status = xml_element.elements['status'].text
	end
end