wondeclient 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 254e3d1b26128b7d99ceef73ae14b81244bca88c
4
- data.tar.gz: 692a8eb6c28d12fe69bc6249f327b0145ca2f209
3
+ metadata.gz: acfaeb03fb1a4a32bc6fe4deac7b48919a8383b2
4
+ data.tar.gz: f2da64930bbc7924ad1539af7dee4d847f199a56
5
5
  SHA512:
6
- metadata.gz: cfd472034fb43c9ca7759cde4ce0b792ecf0b3b5e248518ecd2c0688d80f8aac2fe5c1830706b146d92ff16b195606c4cc60df46460e56de4c41333d98c4a45d
7
- data.tar.gz: 04d695ba5443536cd8b74790d730e9f6de6c4fffad84998ed60bafbf0490cde1219c4c3a067210fd21c8634201308e2f5a86e11c8c2ed5abc9d53f48d95bc0b2
6
+ metadata.gz: ad72fc204caefba8c8750131e28c81d730404d278fe2710c6f3592a50b3124e878213cbbea073e7f3bf1485097c98056dd4c8bf788ac26bba4347fbb26ad43ff
7
+ data.tar.gz: 6f0249a6d397dfb3a11fbc83b4434ed1fb33ad930a2d2af4118b5eb961e487418a53394ef512c3d1c6bf0fea45dd4450cd1aed5e90fd241fdd50c27a85196b7a
@@ -0,0 +1,11 @@
1
+ module Wonde
2
+ class MedicalNotes < Endpoints
3
+ @@uri = 'medical-notes/'
4
+ def initialize(token, id=false)
5
+ super(token, id)
6
+ self.uri = @@uri
7
+ self.uri = id + '/' + @@uri if id
8
+ self.uri = self.uri.gsub("//", "/").chomp("/")
9
+ end
10
+ end
11
+ end
@@ -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, :periods,
6
- :photos, :rooms, :subjects, :students, :assessment, :deletions,
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)
@@ -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 and self.meta.pagination.more
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.7
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