class AWS::Record::Validator

def initialize record_class, *attribute_names, &block

def initialize record_class, *attribute_names, &block
  @options = attribute_names.last.is_a?(Hash) ? attribute_names.pop : {}
  @attribute_names = attribute_names
  reject_unknown_options
  ensure_type([Symbol, Proc], :if, :unless)
  ensure_is([:save, :create, :update], :on) 
  setup(record_class)
end