Sha256: 0fdfa2c1574eaf1f0d9c19f9c68a70d14023ade258599a664c7ceb31e14b5af8

Contents?: true

Size: 637 Bytes

Versions: 9

Compression:

Stored size: 637 Bytes

Contents

module Psychometric
  # # Subject
  #
  # This represents someone who undergoes the psychometric assessment. Since
  # different providers identify subjects differently this class can be used
  # to map subjects to your users.
  class Subject
    attr_accessor :country, :identity, :email, :name, :gender, :title

    def initialize(args)
      @country = args[:country]
      @identity = args[:identity]
      @email = args[:email]
      @name = args[:name]
      @gender = args[:gender]
      @title = args[:title]
    end

    def to_s
      "\#<Psychometric::Subject name: \"#{@name}\" identity: \"#{@identity}\">"
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
psychometric-0.1.9 lib/psychometric/subject.rb
psychometric-0.1.8 lib/psychometric/subject.rb
psychometric-0.1.7 lib/psychometric/subject.rb
psychometric-0.1.6 lib/psychometric/subject.rb
psychometric-0.1.5 lib/psychometric/subject.rb
psychometric-0.1.3 lib/psychometric/subject.rb
psychometric-0.1.2 lib/psychometric/subject.rb
psychometric-0.1.1 lib/psychometric/subject.rb
psychometric-0.1.0 lib/psychometric/subject.rb