-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from AssemblyAI/fern/updatecustompolling
- Loading branch information
Showing
4 changed files
with
31 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,20 @@ | ||
# frozen_string_literal: true | ||
|
||
module AssemblyAI | ||
class Transcripts | ||
# Configuration options for polling requests. | ||
class PollingOptions | ||
attr_reader :interval, :timeout | ||
|
||
# @param interval [Integer] The amount of time to wait between polling requests, in milliseconds. Defaults to 3000. | ||
# @param timeout [Integer] The maximum amount of time to wait for the transcript to be ready, in milliseconds. Defaults to -1, which means poll forever. | ||
# @return [Transcripts::PollingOptions] | ||
def initialize(interval: 3000, timeout: -1) | ||
# @type [Integer] The amount of time to wait between polling requests, in milliseconds. | ||
@interval = interval | ||
# @type [Integer] The maximum amount of time to wait for the transcript to be ready, in milliseconds. | ||
@timeout = timeout | ||
end | ||
class Transcripts | ||
# Configuration options for polling requests. | ||
class PollingOptions | ||
attr_reader :interval, :timeout | ||
|
||
# @param interval [Integer] The amount of time to wait between polling requests, in milliseconds. Defaults to 3000. | ||
# @param timeout [Integer] The maximum amount of time to wait for the transcript to be ready, in milliseconds. Defaults to -1, which means poll forever. | ||
# @return [Transcripts::PollingOptions] | ||
def initialize(interval: 3000, timeout: -1) | ||
# @type [Integer] The amount of time to wait between polling requests, in milliseconds. | ||
@interval = interval | ||
# @type [Integer] The maximum amount of time to wait for the transcript to be ready, in milliseconds. | ||
@timeout = timeout | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters