wcc-jtj-client 0.1.6 → 0.1.7
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 +4 -4
- data/lib/wcc/jtj/client/schemas/curriculum_summary.rb +15 -4
- data/lib/wcc/jtj/client/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5c4300e2d5a5a0ba176e7d7fe1e418d05a39791c1bf0e750af9fbcd26440c2ab
|
|
4
|
+
data.tar.gz: 05e2bc6982830d9a4a8d06fd75ad184975f391a38b75a857e52d9e8f8a531986
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ae709f33cd3de785ef6fd57a6686f866c64718398df330b05ed832fe45ae20f28981883826b9d27cd2e0400f304b2545dd43c54c2587e0678388b9e1d88bdb72
|
|
7
|
+
data.tar.gz: f150af316d960067eff23e5d7570be9acc042ab8590dc2474cd045dacd3e77d7ea92960e1600e2ad4833a4db702d87e9b0af107f22cd1fdbb03ad50976842e17
|
|
@@ -6,14 +6,25 @@ module WCC::JTJ::Client::Schemas
|
|
|
6
6
|
class CurriculumSummary < Base
|
|
7
7
|
define_camelcase_alias(
|
|
8
8
|
'id',
|
|
9
|
-
'title'
|
|
10
|
-
'start_date',
|
|
11
|
-
'end_date',
|
|
12
|
-
'days_of_week'
|
|
9
|
+
'title'
|
|
13
10
|
) do |camelcase|
|
|
14
11
|
raw[camelcase]
|
|
15
12
|
end
|
|
16
13
|
|
|
14
|
+
# An oversight - in the response these are snake case when they ought to be camel
|
|
15
|
+
%w[
|
|
16
|
+
start_date
|
|
17
|
+
end_date
|
|
18
|
+
days_of_week
|
|
19
|
+
].each do |snake_case|
|
|
20
|
+
define_method(snake_case) do
|
|
21
|
+
raw[snake_case]
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
alias startDate start_date
|
|
25
|
+
alias endDate end_date
|
|
26
|
+
alias daysOfWeek days_of_week
|
|
27
|
+
|
|
17
28
|
def links
|
|
18
29
|
OpenStruct.new(raw['links']) if raw['links']
|
|
19
30
|
end
|