Class: Hanami::Action::Params::DefaultContract::Result 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.

Since:

  • 2.2.0

Instance Method Summary collapse

Constructor Details

#initialize(attrs) ⇒ Result

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.

Returns a new instance of Result.

Since:

  • 2.2.0



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

def initialize(attrs) = @attrs = Utils::Hash.deep_symbolize(attrs)

Instance Method Details

#errorsObject

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



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

def errors = {}

#to_hObject

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



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

def to_h = @attrs