Sha256: 7c888f1f0cd844df41da07d22e490b1e1fbb1f8a178466e0dff0a5c67d7865b4
Contents?: true
Size: 480 Bytes
Versions: 3
Compression:
Stored size: 480 Bytes
Contents
# frozen_string_literal: true module WeakSwaggerParameters module Definitions class Response def initialize(status_code, description) @status_code = status_code @description = description end def apply_docs(parent_node) status_code = @status_code response_options = { description: @description } parent_node.instance_eval do response status_code, response_options end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems