Sha256: 97327881cfa3c5acbbfa05d395966722e02d111dec10f00df8de5fc58d9a2187
Contents?: true
Size: 821 Bytes
Versions: 8
Compression:
Stored size: 821 Bytes
Contents
module RspecApiDocs class Resource class Parameter attr_reader :name, :parameter def initialize(name, parameter) @name = name @parameter = parameter end # The scope of the parameter # # @return [Array<String>] def scope parameter[:scope] end # If the parameter is required # # @return [String] def required !!parameter[:required] end # The description of the parameter # # @return [String] def description parameter[:description] end # @return [true, false] def ==(other) name == other.name && parameter == other.parameter end # @return [String, nil] def type parameter[:type] end end end end
Version data entries
8 entries across 8 versions & 1 rubygems