Class: OpenapiFirst::ChildConfiguration
- Inherits:
-
Configuration
- Object
- Configuration
- OpenapiFirst::ChildConfiguration
- Defined in:
- lib/openapi_first/child_configuration.rb
Overview
A subclass to configuration that points to its parent
Constant Summary
Constants inherited from Configuration
OpenapiFirst::Configuration::HOOKS
Instance Attribute Summary
Attributes inherited from Configuration
#hooks, #path, #request_validation_error_response, #request_validation_raise_error, #response_validation_raise_error
Instance Method Summary collapse
-
#initialize(parent:) ⇒ ChildConfiguration
constructor
A new instance of ChildConfiguration.
Methods inherited from Configuration
Constructor Details
#initialize(parent:) ⇒ ChildConfiguration
Returns a new instance of ChildConfiguration.
6 7 8 9 10 11 12 13 |
# File 'lib/openapi_first/child_configuration.rb', line 6 def initialize(parent:) super() @parent = parent @request_validation_error_response = parent.request_validation_error_response @request_validation_raise_error = parent.request_validation_raise_error @response_validation_raise_error = parent.response_validation_raise_error @path = parent.path end |