class OasRails::Builders::ResponseBuilder

def build

def build
  @response
end

def from_tag(tag)

def from_tag(tag)
  @response.code = tag.name.to_i
  @response.description = tag.text
  @response.content = ContentBuilder.new(@specification, :outgoing).with_schema(tag.schema).build
  self
end

def initialize(specification)

def initialize(specification)
  @specification = specification
  @response = Spec::Response.new(specification)
end

def with_code(code)

def with_code(code)
  @response.code = code
  self
end

def with_content(content)

def with_content(content)
  @response.content = content
  self
end

def with_description(description)

def with_description(description)
  @response.description = description
  self
end