Class: Hanami::Action::Params::DefaultContract Private

Inherits:
Object
  • Object
show all
Defined in:
lib/hanami/action/params.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Permits all params and returns them as symbolized keys. Stands in for a ‘Dry::Validation::Contract` when neither Hanami::Action.params nor Hanami::Action.contract are called.

See Also:

  • {Params{Params#initialize}

Since:

  • 2.2.0

Defined Under Namespace

Classes: Result

Class Method Summary collapse

Class Method Details

.call(attrs) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 2.2.0



38
# File 'lib/hanami/action/params.rb', line 38

def self.call(attrs) = Result.new(attrs)