Class: AWS::Record::MethodValidator
- Defined in:
- lib/aws/record/validators/method.rb
Overview
Uses the base validator class to call user-defined validation methods.
Constant Summary collapse
- ACCEPTED_OPTIONS =
[:on, :if, :unless]
Instance Attribute Summary
Attributes inherited from Validator
Instance Method Summary collapse
Methods inherited from Validator
Constructor Details
This class inherits a constructor from AWS::Record::Validator
Instance Method Details
#validate_attributes(record) ⇒ Object
25 26 27 28 29 |
# File 'lib/aws/record/validators/method.rb', line 25 def validate_attributes record attribute_names.each do |method_name| record.send(method_name) end end |