Sha256: 3aea816898aa0689fe9258a2815ccdfcb4fe229259f3a10742cdc79e7bba41df
Contents?: true
Size: 587 Bytes
Versions: 2
Compression:
Stored size: 587 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
weak_swagger_parameters-0.6.0 | lib/weak_swagger_parameters/definitions/params.rb |
weak_swagger_parameters-0.5.0 | lib/weak_swagger_parameters/definitions/params.rb |