Sha256: b3314633308aeeda0471ad9a2df0d8027c4db056724b40f9305257c1296990db
Contents?: true
Size: 605 Bytes
Versions: 8
Compression:
Stored size: 605 Bytes
Contents
# frozen_string_literal: true # :reek:InstanceVariableAssumption # :reek:NilCheck module SwaggerDocsGenerator module Actions # Write parameter type :header class Header < Parameter def to_hash { in: :header, name: @name.nil? ? 'header' : @name, description: @description.nil? ? '' : @description, required: @required.nil? ? true : @required, type: @type.nil? ? '' : @type } end private def type(text) @type = text end end end end
Version data entries
8 entries across 8 versions & 1 rubygems