Class: CoreLibrary::BaseHttpLoggingConfiguration
- Inherits:
-
Object
- Object
- CoreLibrary::BaseHttpLoggingConfiguration
- Defined in:
- lib/apimatic-core/logger/configurations/api_logging_configuration.rb
Overview
Represents configuration for logging HTTP messages.
Direct Known Subclasses
ApiRequestLoggingConfiguration, ApiResponseLoggingConfiguration
Instance Attribute Summary collapse
-
#headers_to_exclude ⇒ Object
readonly
Returns the value of attribute headers_to_exclude.
-
#headers_to_include ⇒ Object
readonly
Returns the value of attribute headers_to_include.
-
#headers_to_unmask ⇒ Object
readonly
Returns the value of attribute headers_to_unmask.
-
#log_body ⇒ Object
readonly
Returns the value of attribute log_body.
-
#log_headers ⇒ Object
readonly
Returns the value of attribute log_headers.
Instance Method Summary collapse
-
#initialize(log_body, log_headers, headers_to_exclude, headers_to_include, headers_to_unmask) ⇒ BaseHttpLoggingConfiguration
constructor
Initializes a new instance of BaseHttpLoggingConfiguration.
Constructor Details
#initialize(log_body, log_headers, headers_to_exclude, headers_to_include, headers_to_unmask) ⇒ BaseHttpLoggingConfiguration
Initializes a new instance of BaseHttpLoggingConfiguration.
40 41 42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/apimatic-core/logger/configurations/api_logging_configuration.rb', line 40 def initialize( log_body, log_headers, headers_to_exclude, headers_to_include, headers_to_unmask ) @log_body = log_body @log_headers = log_headers @headers_to_exclude = headers_to_exclude || [] @headers_to_include = headers_to_include || [] @headers_to_unmask = headers_to_unmask || [] end |
Instance Attribute Details
#headers_to_exclude ⇒ Object (readonly)
Returns the value of attribute headers_to_exclude.
30 31 32 |
# File 'lib/apimatic-core/logger/configurations/api_logging_configuration.rb', line 30 def headers_to_exclude @headers_to_exclude end |
#headers_to_include ⇒ Object (readonly)
Returns the value of attribute headers_to_include.
30 31 32 |
# File 'lib/apimatic-core/logger/configurations/api_logging_configuration.rb', line 30 def headers_to_include @headers_to_include end |
#headers_to_unmask ⇒ Object (readonly)
Returns the value of attribute headers_to_unmask.
30 31 32 |
# File 'lib/apimatic-core/logger/configurations/api_logging_configuration.rb', line 30 def headers_to_unmask @headers_to_unmask end |
#log_body ⇒ Object (readonly)
Returns the value of attribute log_body.
30 31 32 |
# File 'lib/apimatic-core/logger/configurations/api_logging_configuration.rb', line 30 def log_body @log_body end |
#log_headers ⇒ Object (readonly)
Returns the value of attribute log_headers.
30 31 32 |
# File 'lib/apimatic-core/logger/configurations/api_logging_configuration.rb', line 30 def log_headers @log_headers end |