Skip to content

Commit 57bad4f

Browse files
Fixed snake case for detectLanguage
1 parent 820d7d5 commit 57bad4f

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

lib/bandwidth/voice_lib/voice/models/transcribe_recording_request.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class TranscribeRecordingRequest < BaseModel
3535

3636
# TODO: Write general description for this method
3737
# @return [Boolean]
38-
attr_accessor :detectLanguage
38+
attr_accessor :detect_Language
3939

4040
# A mapping from model property names to API property names.
4141
def self.names
@@ -46,7 +46,7 @@ def self.names
4646
@_hash['password'] = 'password'
4747
@_hash['tag'] = 'tag'
4848
@_hash['callback_timeout'] = 'callbackTimeout'
49-
@_hash['detectLanguage'] = 'detectLanguage'
49+
@_hash['detect_Language'] = 'detectLanguage'
5050
@_hash
5151
end
5252

@@ -82,15 +82,15 @@ def initialize(callback_url = nil,
8282
username = nil,
8383
password = nil,
8484
tag = nil,
85-
detectLanguage = nil,
85+
detect_Language = nil,
8686
callback_timeout = nil)
8787
@callback_url = callback_url unless callback_url == SKIP
8888
@callback_method = callback_method unless callback_method == SKIP
8989
@username = username unless username == SKIP
9090
@password = password unless password == SKIP
9191
@tag = tag unless tag == SKIP
9292
@callback_timeout = callback_timeout unless callback_timeout == SKIP
93-
@detectLanguage = detectLanguage unless detectLanguage == SKIP
93+
@detect_Language = detect_Language unless detect_Language == SKIP
9494
end
9595

9696
# Creates an instance of the object from a hash.
@@ -106,7 +106,7 @@ def self.from_hash(hash)
106106
tag = hash.key?('tag') ? hash['tag'] : SKIP
107107
callback_timeout =
108108
hash.key?('callbackTimeout') ? hash['callbackTimeout'] : SKIP
109-
detectLanguage =
109+
detect_Language =
110110
hash.key?('detectLanguage') ? hash['detectLanguage'] : SKIP
111111

112112
# Create object from extracted values.
@@ -115,7 +115,7 @@ def self.from_hash(hash)
115115
username,
116116
password,
117117
tag,
118-
detectLanguage,
118+
detect_Language,
119119
callback_timeout)
120120
end
121121
end

test/integration/test_integration.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ def test_record
355355
:recording_available_url => "https://available.com",
356356
:recording_available_method => "GET",
357357
:transcribe => false,
358-
:detectLanguage=> true,
358+
:detect_Language=> true,
359359
:transcription_available_url => "https://transcribe.com",
360360
:transcription_available_method => "POST",
361361
:username => "user",

0 commit comments

Comments
 (0)