Class: AssemblyAI::AsyncClient
- Inherits:
-
Object
- Object
- AssemblyAI::AsyncClient
- Defined in:
- lib/assemblyai.rb
Instance Attribute Summary collapse
-
#files ⇒ Object
readonly
Returns the value of attribute files.
-
#lemur ⇒ Object
readonly
Returns the value of attribute lemur.
-
#realtime ⇒ Object
readonly
Returns the value of attribute realtime.
-
#transcripts ⇒ Object
readonly
Returns the value of attribute transcripts.
Instance Method Summary collapse
Constructor Details
#initialize(api_key:, environment: Environment::DEFAULT, max_retries: nil, timeout_in_seconds: nil, user_agent: nil) ⇒ AsyncClient
43 44 45 46 47 48 49 50 |
# File 'lib/assemblyai.rb', line 43 def initialize(api_key:, environment: Environment::DEFAULT, max_retries: nil, timeout_in_seconds: nil, user_agent: nil) @async_request_client = AsyncRequestClient.new(environment: environment, max_retries: max_retries, timeout_in_seconds: timeout_in_seconds, api_key: api_key, user_agent: user_agent) @files = AsyncFilesClient.new(request_client: @async_request_client) @transcripts = AsyncTranscriptsClient.new(request_client: @async_request_client) @realtime = AsyncRealtimeClient.new(request_client: @async_request_client) @lemur = AsyncLemurClient.new(request_client: @async_request_client) end |
Instance Attribute Details
#files ⇒ Object (readonly)
Returns the value of attribute files.
35 36 37 |
# File 'lib/assemblyai.rb', line 35 def files @files end |
#lemur ⇒ Object (readonly)
Returns the value of attribute lemur.
35 36 37 |
# File 'lib/assemblyai.rb', line 35 def lemur @lemur end |
#realtime ⇒ Object (readonly)
Returns the value of attribute realtime.
35 36 37 |
# File 'lib/assemblyai.rb', line 35 def realtime @realtime end |
#transcripts ⇒ Object (readonly)
Returns the value of attribute transcripts.
35 36 37 |
# File 'lib/assemblyai.rb', line 35 def transcripts @transcripts end |