Class: Merge::IdempotencyRequestOptions
- Inherits:
-
Object
- Object
- Merge::IdempotencyRequestOptions
- Defined in:
- lib/requests.rb
Overview
Additional options for request-specific configuration when calling APIs via the
SDK.
Instance Attribute Summary collapse
-
#account_token ⇒ String
readonly
Token identifying the end user.
- #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, account_token: nil, additional_headers: nil, additional_query_parameters: nil, additional_body_parameters: nil, timeout_in_seconds: nil) ⇒ Merge::IdempotencyRequestOptions
169 170 171 172 173 174 175 176 177 178 |
# File 'lib/requests.rb', line 169 def initialize(base_url: nil, api_key: nil, account_token: nil, additional_headers: nil, additional_query_parameters: nil, additional_body_parameters: nil, timeout_in_seconds: nil) @base_url = base_url @api_key = api_key @account_token = account_token @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
#account_token ⇒ String (readonly)
Returns Token identifying the end user.
151 152 153 |
# File 'lib/requests.rb', line 151 def account_token @account_token end |
#additional_body_parameters ⇒ Hash{String => Object} (readonly)
157 158 159 |
# File 'lib/requests.rb', line 157 def additional_body_parameters @additional_body_parameters end |
#additional_headers ⇒ Hash{String => Object} (readonly)
153 154 155 |
# File 'lib/requests.rb', line 153 def additional_headers @additional_headers end |
#additional_query_parameters ⇒ Hash{String => Object} (readonly)
155 156 157 |
# File 'lib/requests.rb', line 155 def additional_query_parameters @additional_query_parameters end |
#api_key ⇒ String (readonly)
149 150 151 |
# File 'lib/requests.rb', line 149 def api_key @api_key end |
#base_url ⇒ String (readonly)
147 148 149 |
# File 'lib/requests.rb', line 147 def base_url @base_url end |
#timeout_in_seconds ⇒ Long (readonly)
159 160 161 |
# File 'lib/requests.rb', line 159 def timeout_in_seconds @timeout_in_seconds end |