Class: Merge::IdempotencyRequestOptions

Inherits:
Object
  • Object
show all
Defined in:
lib/requests.rb

Overview

Additional options for request-specific configuration when calling APIs via the

SDK.

Instance Attribute Summary collapse

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

Parameters:

  • base_url (String) (defaults to: nil)
  • api_key (String) (defaults to: nil)
  • account_token (String) (defaults to: nil)

    Token identifying the end user.

  • additional_headers (Hash{String => Object}) (defaults to: nil)
  • additional_query_parameters (Hash{String => Object}) (defaults to: nil)
  • additional_body_parameters (Hash{String => Object}) (defaults to: nil)
  • timeout_in_seconds (Long) (defaults to: nil)


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 = 
  @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_tokenString (readonly)

Returns Token identifying the end user.

Returns:

  • (String)

    Token identifying the end user.



151
152
153
# File 'lib/requests.rb', line 151

def 
  @account_token
end

#additional_body_parametersHash{String => Object} (readonly)

Returns:

  • (Hash{String => Object})


157
158
159
# File 'lib/requests.rb', line 157

def additional_body_parameters
  @additional_body_parameters
end

#additional_headersHash{String => Object} (readonly)

Returns:

  • (Hash{String => Object})


153
154
155
# File 'lib/requests.rb', line 153

def additional_headers
  @additional_headers
end

#additional_query_parametersHash{String => Object} (readonly)

Returns:

  • (Hash{String => Object})


155
156
157
# File 'lib/requests.rb', line 155

def additional_query_parameters
  @additional_query_parameters
end

#api_keyString (readonly)

Returns:

  • (String)


149
150
151
# File 'lib/requests.rb', line 149

def api_key
  @api_key
end

#base_urlString (readonly)

Returns:

  • (String)


147
148
149
# File 'lib/requests.rb', line 147

def base_url
  @base_url
end

#timeout_in_secondsLong (readonly)

Returns:

  • (Long)


159
160
161
# File 'lib/requests.rb', line 159

def timeout_in_seconds
  @timeout_in_seconds
end