Class: Canvas::Validator::SchemaAttribute::ExperienceDate

Inherits:
Base
  • Object
show all
Defined in:
lib/canvas/validators/schema_attributes/experience_date.rb

Overview

:documented: Attribute validations specific to the experience_date variables.

Constant Summary collapse

ALLOWED_DEFAULT_VALUES =
%w[next_upcoming].freeze

Instance Attribute Summary

Attributes inherited from Base

#attribute, #errors

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Canvas::Validator::SchemaAttribute::Base

Instance Method Details

#validateObject



11
12
13
# File 'lib/canvas/validators/schema_attributes/experience_date.rb', line 11

def validate
  super && ensure_default_values_are_valid
end