Class: Spikard::ValidationResponse
- Inherits:
-
Object
- Object
- Spikard::ValidationResponse
- Defined in:
- sig/types.rbs
Instance Attribute Summary collapse
-
#errors ⇒ Array[String]
readonly
Returns the value of attribute errors.
-
#valid ⇒ Boolean
readonly
Returns the value of attribute valid.
Instance Method Summary collapse
-
#initialize ⇒ ValidationResponse
constructor
A new instance of ValidationResponse.
Constructor Details
#initialize ⇒ ValidationResponse
Returns a new instance of ValidationResponse.
370 |
# File 'sig/types.rbs', line 370
def initialize: (valid: bool, errors: Array[String]) -> void
|
Instance Attribute Details
#errors ⇒ Array[String] (readonly)
Returns the value of attribute errors.
368 369 370 |
# File 'sig/types.rbs', line 368 def errors @errors end |
#valid ⇒ Boolean (readonly)
Returns the value of attribute valid.
367 368 369 |
# File 'sig/types.rbs', line 367 def valid @valid end |