Class: Ai2Web::SchemaResult

Inherits:
Struct
  • Object
show all
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

Instance Method Summary collapse

Instance Attribute Details

#errorsObject

Returns the value of attribute errors

Returns:

  • (Object)

    the current value of errors



5
6
7
# File 'lib/ai2web/schema.rb', line 5

def errors
  @errors
end

#validObject

Returns the value of attribute valid

Returns:

  • (Object)

    the current value of valid



5
6
7
# File 'lib/ai2web/schema.rb', line 5

def valid
  @valid
end

Instance Method Details

#valid?Boolean

Returns:

  • (Boolean)


6
# File 'lib/ai2web/schema.rb', line 6

def valid? = valid