Class: NewDemoApiClient::RequestOptions
- Inherits:
-
Object
- Object
- NewDemoApiClient::RequestOptions
- 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
- #base_url ⇒ String readonly
- #timeout_in_seconds ⇒ Long readonly
- #token ⇒ String readonly
Instance Method Summary collapse
Constructor Details
#initialize(base_url: nil, token: nil, additional_headers: nil, additional_query_parameters: nil, additional_body_parameters: nil, timeout_in_seconds: nil) ⇒ NewDemoApiClient::RequestOptions
122 123 124 125 126 127 128 129 130 |
# File 'lib/requests.rb', line 122 def initialize(base_url: nil, token: nil, additional_headers: nil, additional_query_parameters: nil, additional_body_parameters: nil, timeout_in_seconds: nil) @base_url = base_url @token = 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
#additional_body_parameters ⇒ Hash{String => Object} (readonly)
111 112 113 |
# File 'lib/requests.rb', line 111 def additional_body_parameters @additional_body_parameters end |
#additional_headers ⇒ Hash{String => Object} (readonly)
107 108 109 |
# File 'lib/requests.rb', line 107 def additional_headers @additional_headers end |
#additional_query_parameters ⇒ Hash{String => Object} (readonly)
109 110 111 |
# File 'lib/requests.rb', line 109 def additional_query_parameters @additional_query_parameters end |
#base_url ⇒ String (readonly)
103 104 105 |
# File 'lib/requests.rb', line 103 def base_url @base_url end |
#timeout_in_seconds ⇒ Long (readonly)
113 114 115 |
# File 'lib/requests.rb', line 113 def timeout_in_seconds @timeout_in_seconds end |
#token ⇒ String (readonly)
105 106 107 |
# File 'lib/requests.rb', line 105 def token @token end |