Class: Yogurt::ErrorResult::OnlyErrors
- Inherits:
-
Object
- Object
- Yogurt::ErrorResult::OnlyErrors
- Extended by:
- T::Sig
- Includes:
- Yogurt::ErrorResult
- Defined in:
- lib/yogurt/error_result.rb
Instance Method Summary collapse
- #errors ⇒ Object
-
#initialize(errors) ⇒ OnlyErrors
constructor
A new instance of OnlyErrors.
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
#errors ⇒ Object
25 26 27 |
# File 'lib/yogurt/error_result.rb', line 25 def errors @errors end |