Class: Cuprum::Rails::Constraints::ParametersContract

Inherits:
Stannum::Contracts::IndifferentHashContract
  • Object
show all
Defined in:
lib/cuprum/rails/constraints/parameters_contract.rb

Overview

Contract for validating request parameters.

Instance Method Summary collapse

Constructor Details

#initialize(**options) ⇒ ParametersContract

Returns a new instance of ParametersContract.



10
11
12
# File 'lib/cuprum/rails/constraints/parameters_contract.rb', line 10

def initialize(**options)
  super(allow_extra_keys: true, **options)
end