Class: DbSchema::Validator::Result
- Inherits:
-
Object
- Object
- DbSchema::Validator::Result
- Defined in:
- lib/db_schema/validator.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Instance Method Summary collapse
-
#initialize(errors) ⇒ Result
constructor
A new instance of Result.
- #valid? ⇒ Boolean
Constructor Details
#initialize(errors) ⇒ Result
Returns a new instance of Result.
80 81 82 |
# File 'lib/db_schema/validator.rb', line 80 def initialize(errors) @errors = errors end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
78 79 80 |
# File 'lib/db_schema/validator.rb', line 78 def errors @errors end |
Instance Method Details
#valid? ⇒ Boolean
84 85 86 |
# File 'lib/db_schema/validator.rb', line 84 def valid? errors.empty? end |