class Bandwidth::TranscribeRecordingRequest
TranscribeRecordingRequest
Model.
Attributes
callback_method[RW]
TODO: Write general description for this method @return [CallbackMethodEnum]
callback_timeout[RW]
TODO: Write general description for this method @return [Float]
callback_url[RW]
TODO: Write general description for this method @return [String]
password[RW]
TODO: Write general description for this method @return [String]
tag[RW]
TODO: Write general description for this method @return [String]
username[RW]
TODO: Write general description for this method @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/transcribe_recording_request.rb, line 60 def self.from_hash(hash) return nil unless hash # Extract variables from the hash. callback_url = hash['callbackUrl'] callback_method = hash['callbackMethod'] username = hash['username'] password = hash['password'] tag = hash['tag'] callback_timeout = hash['callbackTimeout'] # Create object from extracted values. TranscribeRecordingRequest.new(callback_url, callback_method, username, password, tag, callback_timeout) end
names()
click to toggle source
A mapping from model property names to API property names.
# File lib/bandwidth/voice_lib/voice/models/transcribe_recording_request.rb, line 34 def self.names @_hash = {} if @_hash.nil? @_hash['callback_url'] = 'callbackUrl' @_hash['callback_method'] = 'callbackMethod' @_hash['username'] = 'username' @_hash['password'] = 'password' @_hash['tag'] = 'tag' @_hash['callback_timeout'] = 'callbackTimeout' @_hash end
new(callback_url = nil, callback_method = nil, username = nil, password = nil, tag = nil, callback_timeout = nil)
click to toggle source
# File lib/bandwidth/voice_lib/voice/models/transcribe_recording_request.rb, line 45 def initialize(callback_url = nil, callback_method = nil, username = nil, password = nil, tag = nil, callback_timeout = nil) @callback_url = callback_url @callback_method = callback_method @username = username @password = password @tag = tag @callback_timeout = callback_timeout end