Sha256: 76cf779d38e98c564a3f307259dc73752f34e9720a29851c8f249dcdf6344a84
Contents?: true
Size: 710 Bytes
Versions: 4
Compression:
Stored size: 710 Bytes
Contents
module RspecApiDocs class Resource class ResponseField attr_reader :name, :field def initialize(name, field) @name = name @field = field end # The scope of the response field # # @return [Array<String>] def scope field[:scope] end # The type of the response field # # @return [String] def type field[:type] end # The description of the response field # # @return [String] def description field[:description] end # @return [true, false] def ==(other) name == other.name && field == other.field end end end end
Version data entries
4 entries across 4 versions & 1 rubygems