Class: Ai2Web::SchemaResult
- Inherits:
-
Struct
- Object
- Struct
- Ai2Web::SchemaResult
- Defined in:
- lib/ai2web/schema.rb
Overview
Result of validate_schema. valid is a boolean; errors is an array of strings.
Instance Attribute Summary collapse
-
#errors ⇒ Object
Returns the value of attribute errors.
-
#valid ⇒ Object
Returns the value of attribute valid.
Instance Method Summary collapse
Instance Attribute Details
#errors ⇒ Object
Returns the value of attribute errors
5 6 7 |
# File 'lib/ai2web/schema.rb', line 5 def errors @errors end |
#valid ⇒ Object
Returns the value of attribute valid
5 6 7 |
# File 'lib/ai2web/schema.rb', line 5 def valid @valid end |
Instance Method Details
#valid? ⇒ Boolean
6 |
# File 'lib/ai2web/schema.rb', line 6 def valid? = valid |