Sha256: 92c100325db3bb1a2173e84a0d3c9767fce727d6705868f22e9ccb73af57476a
Contents?: true
Size: 476 Bytes
Versions: 15
Compression:
Stored size: 476 Bytes
Contents
# frozen_string_literal: true # :reek:InstanceVariableAssumption # :reek:NilCheck module SwaggerDocsGenerator module Actions # Write parameter type :form class Form < Parameter def to_hash { in: :form, name: @name.nil? ? 'form' : @name, description: @description.nil? ? '' : @description, required: @required.nil? ? true : @required } end end end end
Version data entries
15 entries across 15 versions & 1 rubygems