Sha256: c76fe9d3242d8861e93b68d3902b7a8e2b5f21f4f818fbf551b02e8f330dfde6

Contents?: true

Size: 1.51 KB

Versions: 1

Compression:

Stored size: 1.51 KB

Contents

# author: Vadim Shaveiko <@vshaveyko>
# frozen_string_literal: true

module RailsApiDoc

  module Controller
    module Response
      _dir = 'rails_api_doc/controller/response/'

      autoload :Factory, _dir + 'factory'
      autoload :Headers, _dir + 'headers'
      autoload :Param, _dir + 'param'
    end

    module Request
      _dir = 'rails_api_doc/controller/request/'

      autoload :DSL, _dir + 'dsl'
      autoload :Param, _dir + 'param'
      autoload :Headers, _dir + 'headers'
      autoload :Repository, _dir + 'repository'
    end

    module ResourceParams
      _dir = 'rails_api_doc/controller/strong_params/'

      autoload :DSL, _dir + 'dsl'
      autoload :PermittedParams, _dir + 'permitted_params'
    end
  end

  module Model
    _dir = 'rails_api_doc/model/'

    autoload :AttributeParser, _dir + 'attribute_parser'
  end

  require 'rails_api_doc/config'
  class Config
    _dir = 'rails_api_doc/config/'

    autoload :Validator, _dir + 'validator'
    autoload :ValidateEnum, _dir + 'validate_enum'
    autoload :ValidateType, _dir + 'validate_type'
    autoload :ValidateAryObject, _dir + 'validate_ary_object'
  end

  module Exception
    _dir = 'rails_api_doc/exception/'

    autoload :ParamRequired, _dir + 'param_required'
  end

  class << self

    def configure
      yield configuration
    end

    def configuration
      @_configuration ||= Config.new
    end

    def reset_configuration
      @_configuration = nil
    end

  end

end

require 'rails_api_doc/version'
require 'rails_api_doc/engine'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rails_api_documentation-0.2.3 lib/rails_api_doc.rb