Class: SwaggerDocsGenerator::Actions::Form
- Defined in:
- lib/swagger_docs_generator/parser/actions/parameters/form.rb
Overview
Write parameter type :form
Instance Method Summary collapse
Methods inherited from Parameter
Constructor Details
This class inherits a constructor from SwaggerDocsGenerator::Actions::Parameter
Instance Method Details
#to_hash ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/swagger_docs_generator/parser/actions/parameters/form.rb', line 10 def to_hash { in: :form, name: @name.nil? ? 'form' : @name, description: @description.nil? ? '' : @description, required: @required.nil? ? true : @required } end |