Class: Kaltura::KalturaTranscriptAsset

Inherits:
KalturaAttachmentAsset show all
Defined in:
lib/kaltura_plugins/kaltura_transcript_client_plugin.rb

Instance Attribute Summary collapse

Attributes inherited from KalturaAttachmentAsset

#filename, #format, #status, #title

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

#accuracyObject

The accuracy of the transcript - values between 0 and 1



51
52
53
# File 'lib/kaltura_plugins/kaltura_transcript_client_plugin.rb', line 51

def accuracy
  @accuracy
end

#human_verifiedObject

Was verified by human or machine



53
54
55
# File 'lib/kaltura_plugins/kaltura_transcript_client_plugin.rb', line 53

def human_verified
  @human_verified
end

#languageObject

The language of the transcript



55
56
57
# File 'lib/kaltura_plugins/kaltura_transcript_client_plugin.rb', line 55

def language
  @language
end

#provider_typeObject

The provider of the transcript



57
58
59
# File 'lib/kaltura_plugins/kaltura_transcript_client_plugin.rb', line 57

def provider_type
  @provider_type
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# File 'lib/kaltura_plugins/kaltura_transcript_client_plugin.rb', line 66

def from_xml(xml_element)
	super
	if xml_element.elements['accuracy'] != nil
		self.accuracy = xml_element.elements['accuracy'].text
	end
	if xml_element.elements['humanVerified'] != nil
		self.human_verified = xml_element.elements['humanVerified'].text
	end
	if xml_element.elements['language'] != nil
		self.language = xml_element.elements['language'].text
	end
	if xml_element.elements['providerType'] != nil
		self.provider_type = xml_element.elements['providerType'].text
	end
end