class SwaggerDocsGenerator::Actions::Query
Write parameter type :query
Public Instance Methods
to_hash()
click to toggle source
# File lib/swagger_docs_generator/parser/actions/parameters/query.rb, line 10 def to_hash { in: :query, name: @name.nil? ? 'query' : @name, description: @description.nil? ? '' : @description, required: @required.nil? ? true : @required, type: @type.nil? ? 'array' : @type, items: { type: 'string' } } end
Private Instance Methods
type(text)
click to toggle source
# File lib/swagger_docs_generator/parser/actions/parameters/query.rb, line 23 def type(text) @type = text end