class Bandwidth::TranscriptionMetadata

TranscriptionMetadata Model.

Attributes

completed_time[RW]

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]

id[RW]

TODO: Write general description for this method @return [String]

status[RW]

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]

url[RW]

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

from_hash(hash) click to toggle source

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
names() click to toggle source

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
new(id = nil, status = nil, completed_time = nil, url = nil) click to toggle source
# 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