Class: AWS::Record::MethodValidator

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

#attribute_names, #options

Instance Method Summary collapse

Methods inherited from Validator

#initialize, #validate

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