Sha256: 8b3636b7b2defde432802042c74ec686d7e3971e6c1325c64dad4a23156e8290
Contents?: true
Size: 402 Bytes
Versions: 13
Compression:
Stored size: 402 Bytes
Contents
class Apipie::Generator::Swagger::ParamDescription::Name def initialize(param_description, prefixed_by: nil) @param_description = param_description @prefixed_by = prefixed_by end # @return [Hash] def to_hash name = if @prefixed_by.present? "#{@prefixed_by}[#{@param_description.name}]" else @param_description.name end { name: name } end end
Version data entries
13 entries across 13 versions & 1 rubygems