dmtd_vbmapp_data 1.1.1 → 1.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f317c1bc0647ce42661d7f24a4cf70bae76ece45
|
4
|
+
data.tar.gz: 68fe6682f3b17e7c62ffeb0cac8b95bdf8f7b27a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2bd4dd2a1f58cba26c137c8ddeda04b53860c2a3ab48a37f0edf34c3e0706dceacc5bb4b6d97bd11d1f54ec780b45bc4fe6ba19725f9bd27fb6f59a0a5782fb5
|
7
|
+
data.tar.gz: 79ed50f44dc9f6b95711c800eb2f5ab01485224ef09e99d783db0c0554aa2dd44ce95a0c37e301cfc9c1f876612ffad5a28b8cbd90582cb412d64e0104e311d0
|
data/CHANGELOG.md
CHANGED
@@ -27,4 +27,8 @@
|
|
27
27
|
|
28
28
|
## 1.1.1
|
29
29
|
|
30
|
-
* Standardized all type key attr_readers (i.e. chapter, section, sub_section, area, group, etc.) to return symbols instead of strings
|
30
|
+
* Standardized all type key attr_readers (i.e. chapter, section, sub_section, area, group, etc.) to return symbols instead of strings
|
31
|
+
|
32
|
+
## 1.1.2
|
33
|
+
|
34
|
+
* Added VbmappAreaQuestion fields: definition, objective, question_title
|
@@ -17,6 +17,10 @@ module DmtdVbmappData
|
|
17
17
|
# @return [Symbol] the group of the question (e.g. :mand, :tact, :group1, etc.)
|
18
18
|
attr_reader :group
|
19
19
|
|
20
|
+
# @!attribute [r] definition
|
21
|
+
# @return [String] the formal definition for the question
|
22
|
+
attr_reader :definition
|
23
|
+
|
20
24
|
# @!attribute [r] example
|
21
25
|
# @return [String] an example of administering the question
|
22
26
|
attr_reader :example
|
@@ -25,6 +29,10 @@ module DmtdVbmappData
|
|
25
29
|
# @return [String] the materials required to administer the question
|
26
30
|
attr_reader :materials
|
27
31
|
|
32
|
+
# @!attribute [r] objective
|
33
|
+
# @return [String] The objective of the question
|
34
|
+
attr_reader :objective
|
35
|
+
|
28
36
|
# @!attribute [r] question_number
|
29
37
|
# @return [Integer] the question number (0...n)
|
30
38
|
attr_reader :question_number
|
@@ -33,6 +41,10 @@ module DmtdVbmappData
|
|
33
41
|
# @return [String] the text of the question itself
|
34
42
|
attr_reader :question_text
|
35
43
|
|
44
|
+
# @!attribute [r] question_title
|
45
|
+
# @return [String] a title to display at the top of a grid column
|
46
|
+
attr_reader :question_title
|
47
|
+
|
36
48
|
# Creates an accessor for the VB-MAPP Area Question on the VB-MAPP Data Server
|
37
49
|
#
|
38
50
|
# @note This method does *not* block, simply creates an accessor and returns
|
@@ -46,13 +58,17 @@ module DmtdVbmappData
|
|
46
58
|
@client = opts.fetch(:client)
|
47
59
|
@area = opts.fetch(:area).to_sym
|
48
60
|
@group = opts.fetch(:group).to_sym
|
49
|
-
|
50
61
|
question_json = opts.fetch(:question_json)
|
51
|
-
|
52
|
-
|
53
|
-
@
|
62
|
+
|
63
|
+
guide_content_json = question_json[:guideContent] || {}
|
64
|
+
@definition = guide_content_json[:definition] || ''
|
65
|
+
@objective = guide_content_json[:objective] || ''
|
66
|
+
|
67
|
+
@example = question_json[:example] || guide_content_json[:examples]
|
68
|
+
@materials = question_json[:materials] || guide_content_json[:materials]
|
54
69
|
@question_number = question_json[:questionNumber].to_i
|
55
70
|
@question_text = question_json[:questionText]
|
71
|
+
@question_title = question_json[:questionTitle] || guide_content_json[:title]
|
56
72
|
@responses_json_array = question_json[:responses]
|
57
73
|
end
|
58
74
|
|
@@ -2,7 +2,7 @@ require 'dmtd_vbmapp_data/request_helpers'
|
|
2
2
|
|
3
3
|
module DmtdVbmappData
|
4
4
|
|
5
|
-
# Provides for the retrieving of VB-MAPP Guide
|
5
|
+
# Provides for the retrieving of VB-MAPP Guide responses from the VB-MAPP Data Server.
|
6
6
|
class VbmappAreaResponse
|
7
7
|
|
8
8
|
# @!attribute [r] area
|