Sha256: 4d7782268f057d519e52841cfb5a7306c537f11f5c2738450222d9b10d18f537

Contents?: true

Size: 331 Bytes

Versions: 10

Compression:

Stored size: 331 Bytes

Contents

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

10 entries across 10 versions & 1 rubygems

Version Path
grape-swagger-0.26.1 spec/support/empty_model_parser.rb
grape-swagger-0.26.0 spec/support/empty_model_parser.rb
grape-swagger-0.25.3 spec/support/empty_model_parser.rb
grape-swagger-0.25.2 spec/support/empty_model_parser.rb
grape-swagger-0.25.1 spec/support/empty_model_parser.rb
grape-swagger-0.25.0 spec/support/empty_model_parser.rb
grape-swagger-0.24.0 spec/support/empty_model_parser.rb
grape-swagger-0.23.0 spec/support/empty_model_parser.rb
grape-swagger-0.22.0 spec/support/empty_model_parser.rb
grape-swagger-0.21.0 spec/support/empty_model_parser.rb