Class: Intrinsic::RequestOptions

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(api_key: nil, additional_headers: nil, additional_query_parameters: nil, additional_body_parameters: nil, timeout_in_seconds: nil) ⇒ RequestOptions

Parameters:

  • api_key (String) (defaults to: nil)
  • 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)


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_parametersObject (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_headersObject (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_parametersObject (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_keyObject (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_secondsObject (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