Module: Deepgram::Client

Defined in:
lib/deepgram/client.rb

Overview

The Client module serves as a factory for creating instances of various specialized client classes within the Deepgram module. Each client class is tailored to interact with a specific part of the Deepgram API.

Class Method Summary collapse

Class Method Details

.listenDeepgram::Listen::Client

Creates a new instance of the Listen::Client class.

Returns:



25
26
27
# File 'lib/deepgram/client.rb', line 25

def self.listen
  Listen::Client.new
end

.managementDeepgram::Management::Client

Creates a new instance of the Management::Client class.

Returns:



32
33
34
# File 'lib/deepgram/client.rb', line 32

def self.management
  Management::Client.new
end

.on_premDeepgram::OnPrem::Client

Creates a new instance of the OnPrem::Client class.

Returns:



39
40
41
# File 'lib/deepgram/client.rb', line 39

def self.on_prem
  OnPrem::Client.new
end

.readDeepgram::Read::Client

Creates a new instance of the Read::Client class.

Returns:



11
12
13
# File 'lib/deepgram/client.rb', line 11

def self.read
  Read::Client.new
end

.speakDeepgram::Speak::Client

Creates a new instance of the Speak::Client class.

Returns:



18
19
20
# File 'lib/deepgram/client.rb', line 18

def self.speak
  Speak::Client.new
end