module RequestParamsValidation

Constants

VERSION

Public Class Methods

configure() { |self| ... } click to toggle source

Default way to setup RequestParamsValidation configuration.

# File lib/request_params_validation.rb, line 310
def self.configure
  yield self
end
define(&block) click to toggle source

Method for defining a resource. This is the entrypoint for each resource configuration.

# File lib/request_params_validation.rb, line 304
def self.define(&block)
  RequestParamsValidation::Definitions.register_resource(&block)
end
exceptions() { |ExceptionsConfiguration| ... } click to toggle source

Default way to setup exceptions configuration if a block is given, otherwise it returns the ExceptionConfiguration module.

# File lib/request_params_validation.rb, line 339
def self.exceptions
  if block_given?
    yield ExceptionsConfiguration
  else
    ExceptionsConfiguration
  end
end
extends() { |ExtensionConfiguration| ... } click to toggle source

Default way to extend configuration if a block is given, otherwise it returns the ExtensionConfiguration module.

# File lib/request_params_validation.rb, line 317
def self.extends
  if block_given?
    yield ExtensionConfiguration
  else
    ExtensionConfiguration
  end
end
formats() { |FormatsConfiguration| ... } click to toggle source

Default way to setup formats configuration if a block is given, otherwise it returns the FormatsConfiguration module.

# File lib/request_params_validation.rb, line 328
def self.formats
  if block_given?
    yield FormatsConfiguration
  else
    FormatsConfiguration
  end
end