Class: ValidationMatchers::ActiveModel::TestRecord
- Inherits:
-
Object
- Object
- ValidationMatchers::ActiveModel::TestRecord
- Defined in:
- lib/validation_matchers/active_model/validate_each_matchers.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
Returns the value of attribute errors.
Instance Method Summary collapse
-
#initialize(attr) ⇒ TestRecord
constructor
A new instance of TestRecord.
Constructor Details
#initialize(attr) ⇒ TestRecord
Returns a new instance of TestRecord.
58 59 60 |
# File 'lib/validation_matchers/active_model/validate_each_matchers.rb', line 58 def initialize( attr ) @errors = {attr => []} end |
Instance Attribute Details
#errors ⇒ Object
Returns the value of attribute errors.
57 58 59 |
# File 'lib/validation_matchers/active_model/validate_each_matchers.rb', line 57 def errors @errors end |