Class: Intrinsic::RequestOptions
- Inherits:
-
Object
- Object
- Intrinsic::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 ⇒ Object
readonly
Returns the value of attribute additional_body_parameters.
-
#additional_headers ⇒ Object
readonly
Returns the value of attribute additional_headers.
-
#additional_query_parameters ⇒ Object
readonly
Returns the value of attribute additional_query_parameters.
-
#api_key ⇒ Object
readonly
Returns the value of attribute api_key.
-
#timeout_in_seconds ⇒ Object
readonly
Returns the value of attribute timeout_in_seconds.
Instance Method Summary collapse
Constructor Details
#initialize(api_key: nil, additional_headers: nil, additional_query_parameters: nil, additional_body_parameters: nil, timeout_in_seconds: nil) ⇒ RequestOptions
73 74 75 76 77 78 79 80 81 82 83 84 85 |
# File 'lib/requests.rb', line 73 def initialize(api_key: nil, additional_headers: nil, additional_query_parameters: nil, additional_body_parameters: nil, timeout_in_seconds: nil) # @type [String] @api_key = api_key # @type [Hash{String => Object}] @additional_headers = additional_headers # @type [Hash{String => Object}] @additional_query_parameters = additional_query_parameters # @type [Hash{String => Object}] @additional_body_parameters = additional_body_parameters # @type [Long] @timeout_in_seconds = timeout_in_seconds end |
Instance Attribute Details
#additional_body_parameters ⇒ Object (readonly)
Returns the value of attribute additional_body_parameters.
64 65 66 |
# File 'lib/requests.rb', line 64 def additional_body_parameters @additional_body_parameters end |
#additional_headers ⇒ Object (readonly)
Returns the value of attribute additional_headers.
64 65 66 |
# File 'lib/requests.rb', line 64 def additional_headers @additional_headers end |
#additional_query_parameters ⇒ Object (readonly)
Returns the value of attribute additional_query_parameters.
64 65 66 |
# File 'lib/requests.rb', line 64 def additional_query_parameters @additional_query_parameters end |
#api_key ⇒ Object (readonly)
Returns the value of attribute api_key.
64 65 66 |
# File 'lib/requests.rb', line 64 def api_key @api_key end |
#timeout_in_seconds ⇒ Object (readonly)
Returns the value of attribute timeout_in_seconds.
64 65 66 |
# File 'lib/requests.rb', line 64 def timeout_in_seconds @timeout_in_seconds end |