wondeclient 0.0.7 → 0.0.8
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/endpoints/medicalnotes.rb +11 -0
- data/lib/endpoints/schools.rb +4 -3
- data/lib/resultiterator.rb +1 -1
- data/lib/wondeclient.rb +1 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: acfaeb03fb1a4a32bc6fe4deac7b48919a8383b2
|
4
|
+
data.tar.gz: f2da64930bbc7924ad1539af7dee4d847f199a56
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ad72fc204caefba8c8750131e28c81d730404d278fe2710c6f3592a50b3124e878213cbbea073e7f3bf1485097c98056dd4c8bf788ac26bba4347fbb26ad43ff
|
7
|
+
data.tar.gz: 6f0249a6d397dfb3a11fbc83b4434ed1fb33ad930a2d2af4118b5eb961e487418a53394ef512c3d1c6bf0fea45dd4450cd1aed5e90fd241fdd50c27a85196b7a
|
data/lib/endpoints/schools.rb
CHANGED
@@ -2,9 +2,9 @@ module Wonde
|
|
2
2
|
class Schools < Endpoints
|
3
3
|
attr_accessor :uri, :achievements, :attendance, :behaviours, :classes,
|
4
4
|
:contacts, :counts, :employees, :groups, :lessons,
|
5
|
-
:lessonAttendance, :medicalConditions, :medicalEvents,
|
6
|
-
:
|
7
|
-
:events
|
5
|
+
:lessonAttendance, :medicalConditions, :medicalEvents,
|
6
|
+
:medicalNotes, :periods, :photos, :rooms, :subjects, :students,
|
7
|
+
:assessment, :deletions, :events
|
8
8
|
@@uri = 'schools/'
|
9
9
|
def initialize(token, id=false)
|
10
10
|
super(token, id)
|
@@ -27,6 +27,7 @@ module Wonde
|
|
27
27
|
self.lessonAttendance = Wonde::LessonAttendance.new(token, self.uri)
|
28
28
|
self.medicalConditions = Wonde::MedicalConditions.new(token, self.uri)
|
29
29
|
self.medicalEvents = Wonde::MedicalEvents.new(token, self.uri)
|
30
|
+
self.medicalNotes = Wonde::MedicalNotes.new(token, self.uri)
|
30
31
|
self.periods = Wonde::Periods.new(token, self.uri)
|
31
32
|
self.photos = Wonde::Photos.new(token, self.uri)
|
32
33
|
self.rooms = Wonde::Rooms.new(token, self.uri)
|
data/lib/resultiterator.rb
CHANGED
@@ -21,7 +21,7 @@ module Wonde
|
|
21
21
|
def each
|
22
22
|
original_length = @myarray.length - 1
|
23
23
|
@myarray.each_with_index do |val,index|
|
24
|
-
if index >= original_length and self.meta
|
24
|
+
if index >= original_length and self.meta.pagination.more
|
25
25
|
resp = self.getUrl(self.meta.pagination.next).body
|
26
26
|
jsonized = resp.to_json
|
27
27
|
nextResponse = JSON.parse(jsonized, object_class: OpenStruct)
|
data/lib/wondeclient.rb
CHANGED
@@ -20,6 +20,7 @@ module Wonde
|
|
20
20
|
autoload :Lessons, 'endpoints/lessons'
|
21
21
|
autoload :MedicalConditions, 'endpoints/medicalconditions'
|
22
22
|
autoload :MedicalEvents, 'endpoints/medicalevents'
|
23
|
+
autoload :MedicalNotes, 'endpoints/medicalnotes'
|
23
24
|
autoload :Periods, 'endpoints/periods'
|
24
25
|
autoload :Photos, 'endpoints/photos'
|
25
26
|
autoload :Rooms, 'endpoints/rooms'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wondeclient
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Donlon
|
@@ -55,6 +55,7 @@ files:
|
|
55
55
|
- lib/endpoints/lessons.rb
|
56
56
|
- lib/endpoints/medicalconditions.rb
|
57
57
|
- lib/endpoints/medicalevents.rb
|
58
|
+
- lib/endpoints/medicalnotes.rb
|
58
59
|
- lib/endpoints/periods.rb
|
59
60
|
- lib/endpoints/photos.rb
|
60
61
|
- lib/endpoints/rooms.rb
|