Sha256: 487f0d53e5de126d1070f4ddfc4d78ef8ceac97dd9d7096ca3074f78a898c3ad
Contents?: true
Size: 586 Bytes
Versions: 5
Compression:
Stored size: 586 Bytes
Contents
# frozen_string_literal: true module WeakSwaggerParameters module Definitions class Params < ParamContainer def initialize(&block) @child_definitions = [] instance_eval(&block) end def body(&block) @child_definitions << WeakSwaggerParameters::Definitions::Body.new(&block) end def query(&block) @child_definitions << WeakSwaggerParameters::Definitions::Query.new(&block) end def path(&block) @child_definitions << WeakSwaggerParameters::Definitions::Path.new(&block) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems