Sha256: 239c0df5ab1da08de16fa05d776a2c40a16af1f462d9a8998ecb4a181c938099
Contents?: true
Size: 428 Bytes
Versions: 19
Compression:
Stored size: 428 Bytes
Contents
# frozen_string_literal: true module GrapeSwagger class MockParser attr_reader :model attr_reader :endpoint def initialize(model, endpoint) @model = model @endpoint = endpoint end def call { mock_data: { type: :string, description: "it's a mock" } } end end end GrapeSwagger.model_parsers.register(GrapeSwagger::MockParser, OpenStruct)
Version data entries
19 entries across 19 versions & 1 rubygems