psychometric 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c54074e7b43ddedb4c0df042e13175c7c32527c2
4
- data.tar.gz: a3aedd4a891778bb26775e39accb9f551f825d8b
3
+ metadata.gz: df6acb89bd20a4adaaa049805f8bdc8ada2bf2a9
4
+ data.tar.gz: 1ede60b6da654de745525420852abd13a250c951
5
5
  SHA512:
6
- metadata.gz: cc35d62aa9ea91733e7502b38b9b1aa69d090562702ed1ecec4f0e92f26c22c9457008706e88032ca1cb0a251b4be7394834f5a8cc29872587c21099f11d821c
7
- data.tar.gz: 8e92b0f62c1b8a967bad447ba2076873c2a04401de3832dbd688b924f5a78f117a707db8e261526b828ff633e0e31a5c3e70c8e48723c68a501caeb79514d3a1
6
+ metadata.gz: dd83c94f1a547b260ab974663cadcc5e17d3f919fb8e17a7a891653718c8de4b04cce923940081eafd6c676b0a0991f28d350950d1ad94ee7001e1609391a390
7
+ data.tar.gz: a2614b1c4a80929377927c2b681634530b5871b47bc02e855cb8026afab4d1bceaef97d4e63974c30b2af0da06670d660ae775bbda83f6d69dd4d822befe0cb5
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- psychometric (0.1.1)
4
+ psychometric (0.1.2)
5
5
  httparty (~> 0.16.4)
6
6
 
7
7
  GEM
@@ -75,6 +75,9 @@ module Psychometric
75
75
  title: item['Title|title|Raw|Raw score'],
76
76
  )
77
77
 
78
+ # NOTE: This may need to be configurable in the future
79
+ result.aggregate = item['OverAll'].try(:to_f)
80
+
78
81
  values = item.reject do |key, _v|
79
82
  [
80
83
  'participantGUID',
@@ -2,9 +2,10 @@ module Psychometric
2
2
  # # Result
3
3
  #
4
4
  # A Result respresents a Subject undergoing an Assessment by a Provider and
5
- # will typically contain one or more Values.
5
+ # will typically contain one or more Values. If there is a numerical value by
6
+ # which Results can be ranked it will be assigned to `aggregate`.
6
7
  class Result
7
- attr_accessor :values, :subject, :assessment
8
+ attr_accessor :values, :subject, :assessment, :aggregate
8
9
 
9
10
  def initialize(values = {})
10
11
  @values = values
@@ -1,3 +1,3 @@
1
1
  module Psychometric
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: psychometric
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Prins
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-02-25 00:00:00.000000000 Z
11
+ date: 2019-02-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty