class OasRails::Spec::Responses

def add_response(response)

def add_response(response)
  @responses[response.code] = @specification.components.add_response(response)
end

def initialize(specification)

def initialize(specification)
  @specification = specification
  @responses = {}
end

def to_spec

def to_spec
  spec = {}
  @responses.each do |key, value|
    spec[key] = value.to_spec
  end
  spec
end