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.
350 |
# File 'sig/types.rbs', line 350
def initialize: (valid: bool, errors: Array[String]) -> void
|
Instance Attribute Details
#errors ⇒ Array[String] (readonly)
Returns the value of attribute errors.
348 349 350 |
# File 'sig/types.rbs', line 348 def errors @errors end |
#valid ⇒ Boolean (readonly)
Returns the value of attribute valid.
347 348 349 |
# File 'sig/types.rbs', line 347 def valid @valid end |