Class: Pinnacle::RequestOptions
- Inherits:
-
Object
- Object
- Pinnacle::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
- #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, additional_headers: nil, additional_query_parameters: nil, additional_body_parameters: nil, timeout_in_seconds: nil) ⇒ Pinnacle::RequestOptions
119 120 121 122 123 124 125 126 127 |
# File 'lib/requests.rb', line 119 def initialize(base_url: nil, api_key: nil, additional_headers: nil, additional_query_parameters: nil, additional_body_parameters: nil, timeout_in_seconds: nil) @base_url = base_url @api_key = api_key @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)
108 109 110 |
# File 'lib/requests.rb', line 108 def additional_body_parameters @additional_body_parameters end |
#additional_headers ⇒ Hash{String => Object} (readonly)
104 105 106 |
# File 'lib/requests.rb', line 104 def additional_headers @additional_headers end |
#additional_query_parameters ⇒ Hash{String => Object} (readonly)
106 107 108 |
# File 'lib/requests.rb', line 106 def additional_query_parameters @additional_query_parameters end |
#api_key ⇒ String (readonly)
102 103 104 |
# File 'lib/requests.rb', line 102 def api_key @api_key end |
#base_url ⇒ String (readonly)
100 101 102 |
# File 'lib/requests.rb', line 100 def base_url @base_url end |
#timeout_in_seconds ⇒ Long (readonly)
110 111 112 |
# File 'lib/requests.rb', line 110 def timeout_in_seconds @timeout_in_seconds end |