Sha256: 0d3f7ceab36d0ede0859ea31eedcc6b6d64fa70a0ea2cf60f2437c8b5f230a9b

Contents?: true

Size: 362 Bytes

Versions: 19

Compression:

Stored size: 362 Bytes

Contents

# frozen_string_literal: true

class EmptyClass
end

module GrapeSwagger
  class EmptyModelParser
    attr_reader :model
    attr_reader :endpoint

    def initialize(model, endpoint)
      @model = model
      @endpoint = endpoint
    end

    def call
      {}
    end
  end
end

GrapeSwagger.model_parsers.register(GrapeSwagger::EmptyModelParser, EmptyClass)

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
grape-swagger-1.2.0 spec/support/empty_model_parser.rb
grape-swagger-1.1.0 spec/support/empty_model_parser.rb
grape-swagger-1.0.0 spec/support/empty_model_parser.rb
grape-swagger-0.34.2 spec/support/empty_model_parser.rb
grape-swagger-0.34.1 spec/support/empty_model_parser.rb
grape-swagger-0.34.0 spec/support/empty_model_parser.rb
grape-swagger-0.33.0 spec/support/empty_model_parser.rb
grape-swagger-0.32.1 spec/support/empty_model_parser.rb
grape-swagger-0.32.0 spec/support/empty_model_parser.rb
grape-swagger-0.31.1 spec/support/empty_model_parser.rb
grape-swagger-0.31.0 spec/support/empty_model_parser.rb
grape-swagger-0.30.1 spec/support/empty_model_parser.rb
grape-swagger-0.30.0 spec/support/empty_model_parser.rb
grape-swagger-0.29.0 spec/support/empty_model_parser.rb
grape-swagger-0.28.0 spec/support/empty_model_parser.rb
grape-swagger-0.27.3 spec/support/empty_model_parser.rb
grape-swagger-0.27.2 spec/support/empty_model_parser.rb
grape-swagger-0.27.1 spec/support/empty_model_parser.rb
grape-swagger-0.27.0 spec/support/empty_model_parser.rb