Class: Yogurt::ErrorResult::OnlyErrors

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Yogurt::ErrorResult
Defined in:
lib/yogurt/error_result.rb

Instance Method Summary collapse

Constructor Details

#initialize(errors) ⇒ OnlyErrors

Returns a new instance of OnlyErrors.



20
21
22
# File 'lib/yogurt/error_result.rb', line 20

def initialize(errors)
  @errors = T.let(errors, T::Array[OBJECT_TYPE])
end

Instance Method Details

#errorsObject



25
26
27
# File 'lib/yogurt/error_result.rb', line 25

def errors
  @errors
end