Class: Bandwidth::ApiTranscribeRecordingRequest

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/bandwidth/voice_lib/voice/models/api_transcribe_recording_request.rb

Overview

ApiTranscribeRecordingRequest Model.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseModel

#to_hash, #to_json

Constructor Details

#initialize(callback_url = nil, callback_method = nil, username = nil, password = nil, tag = nil, callback_timeout = nil) ⇒ ApiTranscribeRecordingRequest

Returns a new instance of ApiTranscribeRecordingRequest.



45
46
47
48
49
50
51
52
53
54
55
56
57
# File 'lib/bandwidth/voice_lib/voice/models/api_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

Instance Attribute Details

#callback_methodCallbackMethodEnum

TODO: Write general description for this method

Returns:



15
16
17
# File 'lib/bandwidth/voice_lib/voice/models/api_transcribe_recording_request.rb', line 15

def callback_method
  @callback_method
end

#callback_timeoutFloat

TODO: Write general description for this method

Returns:

  • (Float)


31
32
33
# File 'lib/bandwidth/voice_lib/voice/models/api_transcribe_recording_request.rb', line 31

def callback_timeout
  @callback_timeout
end

#callback_urlString

TODO: Write general description for this method

Returns:

  • (String)


11
12
13
# File 'lib/bandwidth/voice_lib/voice/models/api_transcribe_recording_request.rb', line 11

def callback_url
  @callback_url
end

#passwordString

TODO: Write general description for this method

Returns:

  • (String)


23
24
25
# File 'lib/bandwidth/voice_lib/voice/models/api_transcribe_recording_request.rb', line 23

def password
  @password
end

#tagString

TODO: Write general description for this method

Returns:

  • (String)


27
28
29
# File 'lib/bandwidth/voice_lib/voice/models/api_transcribe_recording_request.rb', line 27

def tag
  @tag
end

#usernameString

TODO: Write general description for this method

Returns:

  • (String)


19
20
21
# File 'lib/bandwidth/voice_lib/voice/models/api_transcribe_recording_request.rb', line 19

def username
  @username
end

Class Method Details

.from_hash(hash) ⇒ Object

Creates an instance of the object from a hash.



60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# File 'lib/bandwidth/voice_lib/voice/models/api_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.

  ApiTranscribeRecordingRequest.new(callback_url,
                                    callback_method,
                                    username,
                                    password,
                                    tag,
                                    callback_timeout)
end

.namesObject

A mapping from model property names to API property names.



34
35
36
37
38
39
40
41
42
43
# File 'lib/bandwidth/voice_lib/voice/models/api_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