Sha256: 6d7c3634041e9920eb185aaf0c8801d7878f29dcf2484566cfd810f904b17e5c

Contents?: true

Size: 383 Bytes

Versions: 2

Compression:

Stored size: 383 Bytes

Contents

# frozen_string_literal: true

module ApiDocServer
  class Configuration
    OPTIONS = %i(
      authentication_proc
      swagger_urls
      doc_config
    ).freeze

    attr_accessor(*OPTIONS)

    def default_swagger_urls
      {v1: 'http://petstore.swagger.io/v2/swagger.json'}
    end

    remove_method :doc_config
    def doc_config
      @doc_config ||= {}
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
api_doc_server-1.0.1 lib/api_doc_server/configuration.rb
api_doc_server-1.0.0 lib/api_doc_server/configuration.rb