Class: WordsApi::RequestLoggingConfiguration
- Inherits:
-
CoreLibrary::ApiRequestLoggingConfiguration
- Object
- CoreLibrary::ApiRequestLoggingConfiguration
- WordsApi::RequestLoggingConfiguration
- Defined in:
- lib/words_api/logging/configuration/api_logging_configuration.rb
Overview
Initializes a new instance of RequestLoggingConfiguration.
Instance Method Summary collapse
- #clone_with(log_body: nil, log_headers: nil, headers_to_include: nil, headers_to_exclude: nil, headers_to_unmask: nil, include_query_in_path: nil) ⇒ Object
-
#initialize(log_body: false, log_headers: false, headers_to_include: nil, headers_to_exclude: nil, headers_to_unmask: nil, include_query_in_path: false) ⇒ RequestLoggingConfiguration
constructor
A new instance of RequestLoggingConfiguration.
Constructor Details
#initialize(log_body: false, log_headers: false, headers_to_include: nil, headers_to_exclude: nil, headers_to_unmask: nil, include_query_in_path: false) ⇒ RequestLoggingConfiguration
Returns a new instance of RequestLoggingConfiguration.
15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/words_api/logging/configuration/api_logging_configuration.rb', line 15 def initialize(log_body: false, log_headers: false, headers_to_include: nil, headers_to_exclude: nil, headers_to_unmask: nil, include_query_in_path: false) super( log_body, log_headers, headers_to_exclude, headers_to_include, headers_to_unmask, include_query_in_path ) end |
Instance Method Details
#clone_with(log_body: nil, log_headers: nil, headers_to_include: nil, headers_to_exclude: nil, headers_to_unmask: nil, include_query_in_path: nil) ⇒ Object
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/words_api/logging/configuration/api_logging_configuration.rb', line 28 def clone_with(log_body: nil, log_headers: nil, headers_to_include: nil, headers_to_exclude: nil, headers_to_unmask: nil, include_query_in_path: nil) log_body ||= self.log_body log_headers ||= self.log_headers headers_to_include ||= self.headers_to_include headers_to_exclude ||= self.headers_to_exclude headers_to_unmask ||= self.headers_to_unmask include_query_in_path ||= self.include_query_in_path RequestLoggingConfiguration.class.new(log_body: log_body, log_headers: log_headers, headers_to_include: headers_to_include, headers_to_exclude: headers_to_exclude, headers_to_unmask: headers_to_unmask, include_query_in_path: include_query_in_path) end |