Sha256: e98fed507464784bf1b974c6757e324a4db8135fa7f588a6273b8d518d1e4b80
Contents?: true
Size: 509 Bytes
Versions: 15
Compression:
Stored size: 509 Bytes
Contents
module OasRails module Spec class Responses include Specable attr_accessor :responses def initialize(specification) @specification = specification @responses = {} end def add_response(response) @responses[response.code] = @specification.components.add_response(response) end def to_spec spec = {} @responses.each do |key, value| spec[key] = value.to_spec end spec end end end end
Version data entries
15 entries across 15 versions & 1 rubygems