Class: Wonde::Schools
Constant Summary collapse
- @@uri =
'schools/'
Instance Attribute Summary collapse
-
#achievements ⇒ Object
Returns the value of attribute achievements.
-
#assessment ⇒ Object
Returns the value of attribute assessment.
-
#attendance ⇒ Object
Returns the value of attribute attendance.
-
#behaviours ⇒ Object
Returns the value of attribute behaviours.
-
#classes ⇒ Object
Returns the value of attribute classes.
-
#contacts ⇒ Object
Returns the value of attribute contacts.
-
#counts ⇒ Object
Returns the value of attribute counts.
-
#deletions ⇒ Object
Returns the value of attribute deletions.
-
#employees ⇒ Object
Returns the value of attribute employees.
-
#events ⇒ Object
Returns the value of attribute events.
-
#groups ⇒ Object
Returns the value of attribute groups.
-
#lessonAttendance ⇒ Object
Returns the value of attribute lessonAttendance.
-
#lessons ⇒ Object
Returns the value of attribute lessons.
-
#medicalConditions ⇒ Object
Returns the value of attribute medicalConditions.
-
#medicalEvents ⇒ Object
Returns the value of attribute medicalEvents.
-
#medicalNotes ⇒ Object
Returns the value of attribute medicalNotes.
-
#periods ⇒ Object
Returns the value of attribute periods.
-
#photos ⇒ Object
Returns the value of attribute photos.
-
#rooms ⇒ Object
Returns the value of attribute rooms.
-
#students ⇒ Object
Returns the value of attribute students.
-
#subjects ⇒ Object
Returns the value of attribute subjects.
-
#uri ⇒ Object
Returns the value of attribute uri.
Attributes inherited from Endpoints
Instance Method Summary collapse
- #get(id, includes = Array.new(), parameters = Array.new()) ⇒ Object
-
#initialize(token, id = false) ⇒ Schools
constructor
A new instance of Schools.
- #pending(includes = Array.new(), parameters = Array.new()) ⇒ Object
- #search(includes = Hash.new(), parameters = Hash.new()) ⇒ Object
Methods inherited from Endpoints
#all, #delete, #deleteRequest, #deleteUrl, #getRequest, #getUrl, #post, #postRequest, #postUrl
Constructor Details
#initialize(token, id = false) ⇒ Schools
Returns a new instance of Schools.
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/endpoints/schools.rb', line 9 def initialize(token, id=false) super(token, id) self.token = token self.uri = @@uri self.uri = @@uri + id + '/' if id self.uri = self.uri.gsub("//", "/").chomp("/") self.achievements = Wonde::Achievements.new(token, self.uri) self.assessment = Wonde::Assessment.new(token, self.uri) self.attendance = Wonde::Attendance.new(token, self.uri) self.behaviours = Wonde::Behaviours.new(token, self.uri) self.classes = Wonde::Classes.new(token, self.uri) self.contacts = Wonde::Contacts.new(token, self.uri) self.counts = Wonde::Counts.new(token, self.uri) self.deletions = Wonde::Deletions.new(token, self.uri) self.employees = Wonde::Employees.new(token, self.uri) self.events = Wonde::Events.new(token, self.uri) self.groups = Wonde::Groups.new(token, self.uri) self.lessons = Wonde::Lessons.new(token, self.uri) self.lessonAttendance = Wonde::LessonAttendance.new(token, self.uri) self.medicalConditions = Wonde::MedicalConditions.new(token, self.uri) self.medicalEvents = Wonde::MedicalEvents.new(token, self.uri) self.medicalNotes = Wonde::MedicalNotes.new(token, self.uri) self.periods = Wonde::Periods.new(token, self.uri) self.photos = Wonde::Photos.new(token, self.uri) self.rooms = Wonde::Rooms.new(token, self.uri) self.students = Wonde::Students.new(token, self.uri) self.subjects = Wonde::Subjects.new(token, self.uri) end |
Instance Attribute Details
#achievements ⇒ Object
Returns the value of attribute achievements.
3 4 5 |
# File 'lib/endpoints/schools.rb', line 3 def achievements @achievements end |
#assessment ⇒ Object
Returns the value of attribute assessment.
3 4 5 |
# File 'lib/endpoints/schools.rb', line 3 def assessment @assessment end |
#attendance ⇒ Object
Returns the value of attribute attendance.
3 4 5 |
# File 'lib/endpoints/schools.rb', line 3 def attendance @attendance end |
#behaviours ⇒ Object
Returns the value of attribute behaviours.
3 4 5 |
# File 'lib/endpoints/schools.rb', line 3 def behaviours @behaviours end |
#classes ⇒ Object
Returns the value of attribute classes.
3 4 5 |
# File 'lib/endpoints/schools.rb', line 3 def classes @classes end |
#contacts ⇒ Object
Returns the value of attribute contacts.
3 4 5 |
# File 'lib/endpoints/schools.rb', line 3 def contacts @contacts end |
#counts ⇒ Object
Returns the value of attribute counts.
3 4 5 |
# File 'lib/endpoints/schools.rb', line 3 def counts @counts end |
#deletions ⇒ Object
Returns the value of attribute deletions.
3 4 5 |
# File 'lib/endpoints/schools.rb', line 3 def deletions @deletions end |
#employees ⇒ Object
Returns the value of attribute employees.
3 4 5 |
# File 'lib/endpoints/schools.rb', line 3 def employees @employees end |
#events ⇒ Object
Returns the value of attribute events.
3 4 5 |
# File 'lib/endpoints/schools.rb', line 3 def events @events end |
#groups ⇒ Object
Returns the value of attribute groups.
3 4 5 |
# File 'lib/endpoints/schools.rb', line 3 def groups @groups end |
#lessonAttendance ⇒ Object
Returns the value of attribute lessonAttendance.
3 4 5 |
# File 'lib/endpoints/schools.rb', line 3 def lessonAttendance @lessonAttendance end |
#lessons ⇒ Object
Returns the value of attribute lessons.
3 4 5 |
# File 'lib/endpoints/schools.rb', line 3 def lessons @lessons end |
#medicalConditions ⇒ Object
Returns the value of attribute medicalConditions.
3 4 5 |
# File 'lib/endpoints/schools.rb', line 3 def medicalConditions @medicalConditions end |
#medicalEvents ⇒ Object
Returns the value of attribute medicalEvents.
3 4 5 |
# File 'lib/endpoints/schools.rb', line 3 def medicalEvents @medicalEvents end |
#medicalNotes ⇒ Object
Returns the value of attribute medicalNotes.
3 4 5 |
# File 'lib/endpoints/schools.rb', line 3 def medicalNotes @medicalNotes end |
#periods ⇒ Object
Returns the value of attribute periods.
3 4 5 |
# File 'lib/endpoints/schools.rb', line 3 def periods @periods end |
#photos ⇒ Object
Returns the value of attribute photos.
3 4 5 |
# File 'lib/endpoints/schools.rb', line 3 def photos @photos end |
#rooms ⇒ Object
Returns the value of attribute rooms.
3 4 5 |
# File 'lib/endpoints/schools.rb', line 3 def rooms @rooms end |
#students ⇒ Object
Returns the value of attribute students.
3 4 5 |
# File 'lib/endpoints/schools.rb', line 3 def students @students end |
#subjects ⇒ Object
Returns the value of attribute subjects.
3 4 5 |
# File 'lib/endpoints/schools.rb', line 3 def subjects @subjects end |
#uri ⇒ Object
Returns the value of attribute uri.
3 4 5 |
# File 'lib/endpoints/schools.rb', line 3 def uri @uri end |
Instance Method Details
#get(id, includes = Array.new(), parameters = Array.new()) ⇒ Object
48 49 50 51 52 |
# File 'lib/endpoints/schools.rb', line 48 def get(id, includes = Array.new(), parameters = Array.new()) self.uri = @@uri school = super(id, includes, parameters) return school end |
#pending(includes = Array.new(), parameters = Array.new()) ⇒ Object
38 39 40 41 |
# File 'lib/endpoints/schools.rb', line 38 def pending(includes = Array.new(), parameters = Array.new()) self.uri = @@uri + 'pending/' return self.all(includes, parameters) end |
#search(includes = Hash.new(), parameters = Hash.new()) ⇒ Object
43 44 45 46 |
# File 'lib/endpoints/schools.rb', line 43 def search(includes = Hash.new(), parameters = Hash.new()) self.uri = @@uri + 'all/' return self.all(includes, parameters) end |