Class: Apipie::ResponseDescriptionAdapter::AdditionalPropertiesModifier

Inherits:
Modifier
  • Object
show all
Defined in:
lib/apipie/response_description_adapter.rb

Instance Method Summary collapse

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