Class: Apipie::ResponseDescriptionAdapter::AdditionalPropertiesModifier
- Inherits:
-
Modifier
- Object
- Modifier
- Apipie::ResponseDescriptionAdapter::AdditionalPropertiesModifier
- Defined in:
- lib/apipie/response_description_adapter.rb
Instance Method Summary collapse
- #apply(adapter) ⇒ Object
-
#initialize(additional_properties_allowed) ⇒ AdditionalPropertiesModifier
constructor
A new instance of AdditionalPropertiesModifier.
Constructor Details
#initialize(additional_properties_allowed) ⇒ AdditionalPropertiesModifier
Returns a new instance of AdditionalPropertiesModifier.
19 20 21 |
# File 'lib/apipie/response_description_adapter.rb', line 19 def initialize(additional_properties_allowed) @additional_properties_allowed = additional_properties_allowed end |
Instance Method Details
#apply(adapter) ⇒ Object
23 24 25 |
# File 'lib/apipie/response_description_adapter.rb', line 23 def apply(adapter) adapter.additional_properties = @additional_properties_allowed end |