# File lib/aws/record/validator.rb, line 24
      def initialize record_class, *attribute_names, &block

        @options = attribute_names.last.is_a?(Hash) ? attribute_names.pop : {}

        @attribute_names = attribute_names.map(&:to_s)

        reject_unknown_options

        ensure_type([Symbol, Proc], :if, :unless)
        ensure_is([:save, :create, :update], :on)

        setup(record_class)

      end