Class: Merge::RequestOptions
- Inherits:
-
Object
- Object
- Merge::RequestOptions
- 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::RequestOptions
131 132 133 134 135 136 137 138 139 140 |
# File 'lib/requests.rb', line 131 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.
113 114 115 |
# File 'lib/requests.rb', line 113 def account_token @account_token end |
#additional_body_parameters ⇒ Hash{String => Object} (readonly)
119 120 121 |
# File 'lib/requests.rb', line 119 def additional_body_parameters @additional_body_parameters end |
#additional_headers ⇒ Hash{String => Object} (readonly)
115 116 117 |
# File 'lib/requests.rb', line 115 def additional_headers @additional_headers end |
#additional_query_parameters ⇒ Hash{String => Object} (readonly)
117 118 119 |
# File 'lib/requests.rb', line 117 def additional_query_parameters @additional_query_parameters end |
#api_key ⇒ String (readonly)
111 112 113 |
# File 'lib/requests.rb', line 111 def api_key @api_key end |
#base_url ⇒ String (readonly)
109 110 111 |
# File 'lib/requests.rb', line 109 def base_url @base_url end |
#timeout_in_seconds ⇒ Long (readonly)
121 122 123 |
# File 'lib/requests.rb', line 121 def timeout_in_seconds @timeout_in_seconds end |