Sha256: 0643e33c34fe7e4de2500f8ebc89df105286805375e5ea76ced8bda25ed67e73
Contents?: true
Size: 597 Bytes
Versions: 15
Compression:
Stored size: 597 Bytes
Contents
# frozen_string_literal: true # :reek:InstanceVariableAssumption # :reek:NilCheck module SwaggerDocsGenerator module Actions # Write parameter type :path class Path < Parameter def to_hash { in: :path, name: @name.nil? ? 'path' : @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
15 entries across 15 versions & 1 rubygems