ims_caliper 0.9.3.12 → 0.9.3.14
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 +8 -8
- data/lib/caliper/entities/outcome/predicted_grade.rb +13 -16
- data/lib/caliper/entities/outcome/result.rb +2 -2
- data/lib/caliper/version.rb +1 -1
- data/spec/lib/sensor_spec.rb +7 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YTFiNGQxYTJkOTcyNzBkZjAwNWVkZGNhN2UxNTg0YWRhM2ZkOTYxYQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
Yjk4ZmU4Njg0YzQwMDdhYmJmYTA0YmRiZWRhMWM0Mjk3NmVmODBhNw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MWYwZjFmZGRhNDc2YmRhZDNhNjFkODY1MGIxZDgzOWI2ZTA3NTk4OTA1YzBj
|
10
|
+
ZTRiMTAxNmIyN2NjNDc2YjYxM2NjZWE1ZDM2OWRhM2IyYmYzZGVkMmI0M2Vl
|
11
|
+
YWNkYTIyOGEwYmJlM2U2N2EwN2I2YjQwZDc0Y2I4ZWExYzY4MjY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MmZlOWU2ZTIyMjM1YzM0ZWEyMWVmMTg4MDViMTg4OWI1NzkzYWU5NDY5MzQx
|
14
|
+
ODg5NDEzMTA0Yjc1ZTE1Zjk0ZTM3ZjFiNjVkMzQ5ZjIwZjRlZDc4NjJjZjE1
|
15
|
+
NDYxNGUyODNkNzRlYWViZmFlYTJhZTYwODhiMmRjYzY4N2ExZTQ=
|
@@ -19,27 +19,24 @@ require_relative '../entity'
|
|
19
19
|
require_relative '../generatable'
|
20
20
|
|
21
21
|
#
|
22
|
-
#
|
22
|
+
# LIS Result
|
23
23
|
#
|
24
24
|
module Caliper
|
25
25
|
module Entities
|
26
|
-
|
27
|
-
|
28
|
-
include Caliper::Entities::Generatable
|
26
|
+
class PredictedGrade < Entity
|
27
|
+
include Caliper::Entities::Generatable
|
29
28
|
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
29
|
+
attr_accessor :type, # String
|
30
|
+
:course_id,
|
31
|
+
:scored_by,
|
32
|
+
:student_id,
|
33
|
+
:user_role,
|
34
|
+
:assignment_id,
|
35
|
+
:predicted_score,
|
36
|
+
:possible_score
|
37
|
+
|
38
|
+
def initialize
|
38
39
|
|
39
|
-
def initialize
|
40
|
-
super
|
41
|
-
@type = Caliper::Entities::EntityType::PREDICTED_GRADE
|
42
|
-
end
|
43
40
|
end
|
44
41
|
end
|
45
42
|
end
|
data/lib/caliper/version.rb
CHANGED
data/spec/lib/sensor_spec.rb
CHANGED
@@ -20,6 +20,8 @@ require_all 'lib/caliper/sensor.rb'
|
|
20
20
|
require_relative './event_helper'
|
21
21
|
require_all 'lib/caliper/event/session_event.rb'
|
22
22
|
require_all 'lib/caliper/event/grade_predict_event.rb'
|
23
|
+
require_all 'lib/caliper/entities/outcome/predicted_grade.rb'
|
24
|
+
require_all 'lib/caliper/entities/outcome/result.rb'
|
23
25
|
|
24
26
|
module Caliper
|
25
27
|
|
@@ -37,7 +39,11 @@ module Caliper
|
|
37
39
|
}
|
38
40
|
|
39
41
|
sensor = Sensor.new options
|
40
|
-
event =
|
42
|
+
event = session_eventP
|
43
|
+
|
44
|
+
predictedEvent = Caliper::Entities::Outcome::PredictedGrade.new
|
45
|
+
|
46
|
+
outcome = Caliper::Entities::Outcome::Result.new
|
41
47
|
|
42
48
|
file = File.read('spec/fixtures/caliper_session_gradecraft.json')
|
43
49
|
data_hash = JSON.parse(file)
|