Class: AssemblyAI::IdempotencyRequestOptions
- Inherits:
-
Object
- Object
- AssemblyAI::IdempotencyRequestOptions
- Defined in:
- lib/requests.rb
Overview
Additional options for request-specific configuration when calling APIs via the
SDK.
Instance Attribute Summary collapse
- #additional_body_parameters ⇒ Hash{String => Object} readonly
- #additional_headers ⇒ Hash{String => Object} readonly
- #additional_query_parameters ⇒ Hash{String => Object} readonly
- #api_key ⇒ String readonly
- #base_url ⇒ String readonly
- #timeout_in_seconds ⇒ Long readonly
Instance Method Summary collapse
Constructor Details
#initialize(base_url: nil, api_key: nil, additional_headers: nil, additional_query_parameters: nil, additional_body_parameters: nil, timeout_in_seconds: nil) ⇒ AssemblyAI::IdempotencyRequestOptions
155 156 157 158 159 160 161 162 163 |
# File 'lib/requests.rb', line 155 def initialize(base_url: nil, api_key: nil, additional_headers: nil, additional_query_parameters: nil, additional_body_parameters: nil, timeout_in_seconds: nil) @base_url = base_url @api_key = api_key @additional_headers = additional_headers @additional_query_parameters = additional_query_parameters @additional_body_parameters = additional_body_parameters @timeout_in_seconds = timeout_in_seconds end |
Instance Attribute Details
#additional_body_parameters ⇒ Hash{String => Object} (readonly)
144 145 146 |
# File 'lib/requests.rb', line 144 def additional_body_parameters @additional_body_parameters end |
#additional_headers ⇒ Hash{String => Object} (readonly)
140 141 142 |
# File 'lib/requests.rb', line 140 def additional_headers @additional_headers end |
#additional_query_parameters ⇒ Hash{String => Object} (readonly)
142 143 144 |
# File 'lib/requests.rb', line 142 def additional_query_parameters @additional_query_parameters end |
#api_key ⇒ String (readonly)
138 139 140 |
# File 'lib/requests.rb', line 138 def api_key @api_key end |
#base_url ⇒ String (readonly)
136 137 138 |
# File 'lib/requests.rb', line 136 def base_url @base_url end |
#timeout_in_seconds ⇒ Long (readonly)
146 147 148 |
# File 'lib/requests.rb', line 146 def timeout_in_seconds @timeout_in_seconds end |