class Psychometric::Assessment
This represents the various assessments a Subject
can undertake with a Provider
. Since different providers have different ways of identifying and organizing their assessments, we give them a dynamic identity.
Attributes
identity[R]
Public Class Methods
new(provider, identity = {})
click to toggle source
# File lib/psychometric/assessment.rb, line 21 def initialize(provider, identity = {}) raise IdentityError if identity.empty? raise ProviderError unless provider.ancestors.include? Psychometric::Provider @identity = identity end