Sha256: 68113b8358d75eb089b8c21ec8d1fa2243d6d71acc80cf95bc412cda8d38b457

Contents?: true

Size: 389 Bytes

Versions: 12

Compression:

Stored size: 389 Bytes

Contents

module Swaggard
  module Swagger
    module Parameters
      class Base

        attr_reader :name

        def to_doc
          {
            'in'            => @in,
            'name'          => @name,
            'description'   => @description,
            'required'      => @is_required,
            'type'          => @data_type
          }
        end

      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
swaggard-0.5.4 lib/swaggard/swagger/parameters/base.rb
swaggard-0.5.3 lib/swaggard/swagger/parameters/base.rb
swaggard-0.5.2 lib/swaggard/swagger/parameters/base.rb
swaggard-0.5.1 lib/swaggard/swagger/parameters/base.rb
swaggard-0.5.0 lib/swaggard/swagger/parameters/base.rb
swaggard-0.4.0 lib/swaggard/swagger/parameters/base.rb
swaggard-0.3.0 lib/swaggard/swagger/parameters/base.rb
swaggard-0.2.1 lib/swaggard/swagger/parameters/base.rb
swaggard-0.2.0 lib/swaggard/swagger/parameters/base.rb
swaggard-0.1.1 lib/swaggard/swagger/parameters/base.rb
swaggard-0.1.0 lib/swaggard/swagger/parameters/base.rb
swaggard-0.0.4 lib/swaggard/swagger/parameters/base.rb