class Bandwidth::TranscriptionMetadata
TranscriptionMetadata
Model.
Attributes
The current status of the transcription. Current values are 'none', 'processing', 'available', 'error', 'timeout', 'file-size-too-big', and 'file-size-too-small'. Additional states may be added in the future, so your application must be tolerant of unknown values. @return [String]
TODO: Write general description for this method @return [String]
The current status of the transcription. Current values are 'none', 'processing', 'available', 'error', 'timeout', 'file-size-too-big', and 'file-size-too-small'. Additional states may be added in the future, so your application must be tolerant of unknown values. @return [String]
The current status of the transcription. Current values are 'none', 'processing', 'available', 'error', 'timeout', 'file-size-too-big', and 'file-size-too-small'. Additional states may be added in the future, so your application must be tolerant of unknown values. @return [String]
Public Class Methods
Creates an instance of the object from a hash.
# File lib/bandwidth/voice_lib/voice/models/transcription_metadata.rb, line 55 def self.from_hash(hash) return nil unless hash # Extract variables from the hash. id = hash['id'] status = hash['status'] completed_time = hash['completedTime'] url = hash['url'] # Create object from extracted values. TranscriptionMetadata.new(id, status, completed_time, url) end
A mapping from model property names to API property names.
# File lib/bandwidth/voice_lib/voice/models/transcription_metadata.rb, line 35 def self.names @_hash = {} if @_hash.nil? @_hash['id'] = 'id' @_hash['status'] = 'status' @_hash['completed_time'] = 'completedTime' @_hash['url'] = 'url' @_hash end
# File lib/bandwidth/voice_lib/voice/models/transcription_metadata.rb, line 44 def initialize(id = nil, status = nil, completed_time = nil, url = nil) @id = id @status = status @completed_time = completed_time @url = url end