Class: Insika::Workflow::Schema::Result

Inherits:
Data
  • Object
show all
Defined in:
lib/insika/workflow.rb

Overview

dry-schema-compatible result. errors is { "field.path" => ["message", …] }.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#errorsObject (readonly)

Returns the value of attribute errors

Returns:

  • (Object)

    the current value of errors



86
87
88
# File 'lib/insika/workflow.rb', line 86

def errors
  @errors
end

Instance Method Details

#success?Boolean

Returns:

  • (Boolean)


87
# File 'lib/insika/workflow.rb', line 87

def success? = errors.empty?