Class: WordsApi::ResponseLoggingConfiguration
- Inherits:
-
CoreLibrary::ApiResponseLoggingConfiguration
- Object
- CoreLibrary::ApiResponseLoggingConfiguration
- WordsApi::ResponseLoggingConfiguration
- Defined in:
- lib/words_api/logging/configuration/api_logging_configuration.rb
Overview
Initializes a new instance of ResponseLoggingConfiguration.
Instance Method Summary collapse
- #clone_with(log_body: nil, log_headers: nil, headers_to_include: nil, headers_to_exclude: nil, headers_to_unmask: nil) ⇒ Object
-
#initialize(log_body: false, log_headers: false, headers_to_include: nil, headers_to_exclude: nil, headers_to_unmask: nil) ⇒ ResponseLoggingConfiguration
constructor
A new instance of ResponseLoggingConfiguration.
Constructor Details
#initialize(log_body: false, log_headers: false, headers_to_include: nil, headers_to_exclude: nil, headers_to_unmask: nil) ⇒ ResponseLoggingConfiguration
Returns a new instance of ResponseLoggingConfiguration.
53 54 55 56 57 58 59 60 61 62 |
# File 'lib/words_api/logging/configuration/api_logging_configuration.rb', line 53 def initialize(log_body: false, log_headers: false, headers_to_include: nil, headers_to_exclude: nil, headers_to_unmask: nil) super( log_body, log_headers, headers_to_exclude, headers_to_include, headers_to_unmask ) end |
Instance Method Details
#clone_with(log_body: nil, log_headers: nil, headers_to_include: nil, headers_to_exclude: nil, headers_to_unmask: nil) ⇒ Object
64 65 66 67 68 69 70 71 72 73 74 75 76 |
# File 'lib/words_api/logging/configuration/api_logging_configuration.rb', line 64 def clone_with(log_body: nil, log_headers: nil, headers_to_include: nil, headers_to_exclude: nil, headers_to_unmask: 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 ResponseLoggingConfiguration.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) end |