Class: Umwelt::Abstract::Interactor

Inherits:
Object
  • Object
show all
Includes:
Hanami::Interactor
Defined in:
lib/umwelt/abstract/interactor.rb

Instance Method Summary collapse

Instance Method Details

#prove(result) ⇒ Object



11
12
13
# File 'lib/umwelt/abstract/interactor.rb', line 11

def prove(result)
  result.success? ? result : error!(result.errors)
end