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.
98 99 100 |
# File 'lib/db_schema/validator.rb', line 98 def initialize(errors) @errors = errors end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
96 97 98 |
# File 'lib/db_schema/validator.rb', line 96 def errors @errors end |
Instance Method Details
#valid? ⇒ Boolean
102 103 104 |
# File 'lib/db_schema/validator.rb', line 102 def valid? errors.empty? end |