Sha256: 7c743038302a506961b9bb265b3c4d58dfd8b7f61c4c7dcbd821b5a8def2f0d8

Contents?: true

Size: 441 Bytes

Versions: 4

Compression:

Stored size: 441 Bytes

Contents

# frozen_string_literal: true
module WeakSwaggerParameters
  module Definitions
    class Path < ParamContainer
      def string(name, description)
        @child_definitions << WeakSwaggerParameters::Definitions::PathParams::String.new(name, description)
      end

      def integer(name, description)
        @child_definitions << WeakSwaggerParameters::Definitions::PathParams::Integer.new(name, description)
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
weak_swagger_parameters-0.3.0 lib/weak_swagger_parameters/definitions/path.rb
weak_swagger_parameters-0.2.0 lib/weak_swagger_parameters/definitions/path.rb
weak_swagger_parameters-0.1.1 lib/weak_swagger_parameters/definitions/path.rb
weak_swagger_parameters-0.0.1 lib/weak_swagger_parameters/definitions/path.rb