Class: Hanami::Validations::Result Private

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/hanami/validations.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.0.0

Instance Method Summary collapse

Instance Method Details

#messagesObject

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.0.0



49
50
51
# File 'lib/hanami/validations.rb', line 49

def messages
  __getobj__.errors.to_h
end

#outputObject

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.0.0



43
44
45
# File 'lib/hanami/validations.rb', line 43

def output
  __getobj__.to_h
end