commonlit-clever-ruby 2.1.3 → 2.1.6.beta1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +27 -30
- data/Makefile +1 -1
- data/README.md +64 -65
- data/clever-ruby.gemspec +5 -5
- data/docs/Contact.md +1 -1
- data/docs/ContactsApi.md +231 -0
- data/docs/ContactsCreated.md +2 -2
- data/docs/ContactsDeleted.md +2 -2
- data/docs/ContactsUpdated.md +2 -2
- data/docs/Course.md +1 -1
- data/docs/CoursesApi.md +231 -0
- data/docs/CoursesCreated.md +2 -2
- data/docs/CoursesDeleted.md +2 -2
- data/docs/CoursesUpdated.md +2 -2
- data/docs/District.md +9 -9
- data/docs/DistrictAdmin.md +2 -2
- data/docs/DistrictAdminsApi.md +171 -0
- data/docs/DistrictadminsCreated.md +2 -2
- data/docs/DistrictadminsDeleted.md +2 -2
- data/docs/DistrictadminsUpdated.md +2 -2
- data/docs/DistrictsApi.md +113 -0
- data/docs/DistrictsCreated.md +2 -2
- data/docs/DistrictsDeleted.md +2 -2
- data/docs/DistrictsUpdated.md +2 -2
- data/docs/Event.md +2 -2
- data/docs/EventsApi.md +1 -1
- data/docs/Location.md +2 -2
- data/docs/Name.md +1 -1
- data/docs/Principal.md +1 -1
- data/docs/School.md +3 -3
- data/docs/SchoolAdmin.md +3 -3
- data/docs/SchoolAdminsApi.md +231 -0
- data/docs/SchoolEnrollment.md +1 -1
- data/docs/SchooladminsCreated.md +2 -2
- data/docs/SchooladminsDeleted.md +2 -2
- data/docs/SchooladminsUpdated.md +2 -2
- data/docs/SchoolsApi.md +351 -0
- data/docs/SchoolsCreated.md +2 -2
- data/docs/SchoolsDeleted.md +2 -2
- data/docs/SchoolsUpdated.md +2 -2
- data/docs/Section.md +2 -2
- data/docs/SectionsApi.md +499 -0
- data/docs/SectionsCreated.md +2 -2
- data/docs/SectionsDeleted.md +2 -2
- data/docs/SectionsUpdated.md +2 -2
- data/docs/Student.md +3 -3
- data/docs/StudentsApi.md +463 -0
- data/docs/StudentsCreated.md +2 -2
- data/docs/StudentsDeleted.md +2 -2
- data/docs/StudentsUpdated.md +2 -2
- data/docs/Teacher.md +2 -2
- data/docs/TeachersApi.md +403 -0
- data/docs/TeachersCreated.md +2 -2
- data/docs/TeachersDeleted.md +2 -2
- data/docs/TeachersUpdated.md +2 -2
- data/docs/Term.md +2 -2
- data/docs/TermsApi.md +231 -0
- data/docs/TermsCreated.md +2 -2
- data/docs/TermsDeleted.md +2 -2
- data/docs/TermsUpdated.md +2 -2
- data/full-v2.yml +2541 -0
- data/lib/clever-ruby/api/contacts_api.rb +241 -0
- data/lib/clever-ruby/api/courses_api.rb +241 -0
- data/lib/clever-ruby/api/district_admins_api.rb +182 -0
- data/lib/clever-ruby/api/districts_api.rb +123 -0
- data/lib/clever-ruby/api/events_api.rb +3 -3
- data/lib/clever-ruby/api/school_admins_api.rb +241 -0
- data/lib/clever-ruby/api/schools_api.rb +359 -0
- data/lib/clever-ruby/api/sections_api.rb +500 -0
- data/lib/clever-ruby/api/students_api.rb +468 -0
- data/lib/clever-ruby/api/teachers_api.rb +409 -0
- data/lib/clever-ruby/api/terms_api.rb +241 -0
- data/lib/clever-ruby/api_client.rb +1 -0
- data/lib/clever-ruby/api_error.rb +3 -3
- data/lib/clever-ruby/configuration.rb +4 -4
- data/lib/clever-ruby/models/admin_name.rb +3 -3
- data/lib/clever-ruby/models/bad_request.rb +3 -3
- data/lib/clever-ruby/models/contact.rb +13 -13
- data/lib/clever-ruby/models/contact_object.rb +3 -3
- data/lib/clever-ruby/models/contact_response.rb +3 -3
- data/lib/clever-ruby/models/contacts_response.rb +3 -3
- data/lib/clever-ruby/models/course.rb +16 -16
- data/lib/clever-ruby/models/course_object.rb +3 -3
- data/lib/clever-ruby/models/course_response.rb +3 -3
- data/lib/clever-ruby/models/courses_response.rb +3 -3
- data/lib/clever-ruby/models/credentials.rb +3 -3
- data/lib/clever-ruby/models/district.rb +71 -71
- data/lib/clever-ruby/models/district_admin.rb +25 -25
- data/lib/clever-ruby/models/district_admin_object.rb +3 -3
- data/lib/clever-ruby/models/district_admin_response.rb +3 -3
- data/lib/clever-ruby/models/district_admins_response.rb +3 -3
- data/lib/clever-ruby/models/district_object.rb +3 -3
- data/lib/clever-ruby/models/district_response.rb +3 -3
- data/lib/clever-ruby/models/districts_response.rb +3 -3
- data/lib/clever-ruby/models/event.rb +16 -16
- data/lib/clever-ruby/models/event_response.rb +3 -3
- data/lib/clever-ruby/models/events_response.rb +3 -3
- data/lib/clever-ruby/models/internal_error.rb +3 -3
- data/lib/clever-ruby/models/link.rb +3 -3
- data/lib/clever-ruby/models/location.rb +25 -25
- data/lib/clever-ruby/models/name.rb +16 -16
- data/lib/clever-ruby/models/not_found.rb +3 -3
- data/lib/clever-ruby/models/principal.rb +16 -16
- data/lib/clever-ruby/models/school.rb +34 -34
- data/lib/clever-ruby/models/school_admin.rb +34 -34
- data/lib/clever-ruby/models/school_admin_object.rb +3 -3
- data/lib/clever-ruby/models/school_admin_response.rb +3 -3
- data/lib/clever-ruby/models/school_admins_response.rb +3 -3
- data/lib/clever-ruby/models/school_enrollment.rb +16 -16
- data/lib/clever-ruby/models/school_object.rb +3 -3
- data/lib/clever-ruby/models/school_response.rb +3 -3
- data/lib/clever-ruby/models/schools_response.rb +3 -3
- data/lib/clever-ruby/models/section.rb +25 -25
- data/lib/clever-ruby/models/section_object.rb +3 -3
- data/lib/clever-ruby/models/section_response.rb +3 -3
- data/lib/clever-ruby/models/sections_response.rb +3 -3
- data/lib/clever-ruby/models/student.rb +49 -34
- data/lib/clever-ruby/models/student_object.rb +3 -3
- data/lib/clever-ruby/models/student_response.rb +3 -3
- data/lib/clever-ruby/models/students_response.rb +3 -3
- data/lib/clever-ruby/models/teacher.rb +25 -25
- data/lib/clever-ruby/models/teacher_object.rb +3 -3
- data/lib/clever-ruby/models/teacher_response.rb +3 -3
- data/lib/clever-ruby/models/teachers_response.rb +3 -3
- data/lib/clever-ruby/models/term.rb +25 -25
- data/lib/clever-ruby/models/term_object.rb +3 -3
- data/lib/clever-ruby/models/term_response.rb +3 -3
- data/lib/clever-ruby/models/terms_response.rb +3 -3
- data/lib/clever-ruby/version.rb +4 -4
- data/lib/clever-ruby.rb +13 -4
- data/override/README-extension.md +4 -5
- data/override/api_client.rb +1 -0
- data/override/override.sh +4 -5
- data/spec/api/contacts_api_spec.rb +84 -0
- data/spec/api/courses_api_spec.rb +84 -0
- data/spec/api/district_admins_api_spec.rb +70 -0
- data/spec/api/districts_api_spec.rb +56 -0
- data/spec/api/events_api_spec.rb +3 -4
- data/spec/api/school_admins_api_spec.rb +84 -0
- data/spec/api/schools_api_spec.rb +112 -0
- data/spec/api/sections_api_spec.rb +142 -0
- data/spec/api/students_api_spec.rb +137 -0
- data/spec/api/teachers_api_spec.rb +123 -0
- data/spec/api/terms_api_spec.rb +84 -0
- data/spec/api_client_spec.rb +3 -4
- data/spec/spec_helper.rb +25 -18
- metadata +48 -179
- data/docs/DataApi.md +0 -2852
- data/git_push.sh +0 -55
- data/lib/clever-ruby/api/data_api.rb +0 -2798
- data/spec/api/data_api_spec.rb +0 -671
- data/spec/configuration_spec.rb +0 -42
- data/spec/events.json +0 -227
- data/spec/models/bad_request_spec.rb +0 -41
- data/spec/models/contact_object_spec.rb +0 -41
- data/spec/models/contact_response_spec.rb +0 -41
- data/spec/models/contact_spec.rb +0 -107
- data/spec/models/contacts_created_spec.rb +0 -59
- data/spec/models/contacts_deleted_spec.rb +0 -59
- data/spec/models/contacts_response_spec.rb +0 -41
- data/spec/models/contacts_updated_spec.rb +0 -65
- data/spec/models/course_object_spec.rb +0 -41
- data/spec/models/course_response_spec.rb +0 -41
- data/spec/models/course_spec.rb +0 -59
- data/spec/models/courses_created_spec.rb +0 -59
- data/spec/models/courses_deleted_spec.rb +0 -59
- data/spec/models/courses_response_spec.rb +0 -41
- data/spec/models/courses_updated_spec.rb +0 -65
- data/spec/models/credentials_spec.rb +0 -41
- data/spec/models/district_admin_object_spec.rb +0 -41
- data/spec/models/district_admin_response_spec.rb +0 -41
- data/spec/models/district_admin_spec.rb +0 -65
- data/spec/models/district_admins_response_spec.rb +0 -41
- data/spec/models/district_object_spec.rb +0 -41
- data/spec/models/district_response_spec.rb +0 -41
- data/spec/models/district_spec.rb +0 -123
- data/spec/models/districtadmins_created_spec.rb +0 -59
- data/spec/models/districtadmins_deleted_spec.rb +0 -59
- data/spec/models/districtadmins_updated_spec.rb +0 -65
- data/spec/models/districts_created_spec.rb +0 -59
- data/spec/models/districts_deleted_spec.rb +0 -59
- data/spec/models/districts_response_spec.rb +0 -41
- data/spec/models/districts_updated_spec.rb +0 -65
- data/spec/models/event_response_spec.rb +0 -41
- data/spec/models/event_spec.rb +0 -53
- data/spec/models/events_response_spec.rb +0 -41
- data/spec/models/internal_error_spec.rb +0 -41
- data/spec/models/location_spec.rb +0 -71
- data/spec/models/name_spec.rb +0 -53
- data/spec/models/not_found_spec.rb +0 -41
- data/spec/models/principal_spec.rb +0 -47
- data/spec/models/school_admin_object_spec.rb +0 -41
- data/spec/models/school_admin_response_spec.rb +0 -41
- data/spec/models/school_admin_spec.rb +0 -95
- data/spec/models/school_admins_response_spec.rb +0 -41
- data/spec/models/school_enrollment_spec.rb +0 -53
- data/spec/models/school_object_spec.rb +0 -41
- data/spec/models/school_response_spec.rb +0 -41
- data/spec/models/school_spec.rb +0 -139
- data/spec/models/schooladmins_created_spec.rb +0 -59
- data/spec/models/schooladmins_deleted_spec.rb +0 -59
- data/spec/models/schooladmins_updated_spec.rb +0 -65
- data/spec/models/schools_created_spec.rb +0 -59
- data/spec/models/schools_deleted_spec.rb +0 -59
- data/spec/models/schools_response_spec.rb +0 -41
- data/spec/models/schools_updated_spec.rb +0 -65
- data/spec/models/section_object_spec.rb +0 -41
- data/spec/models/section_response_spec.rb +0 -41
- data/spec/models/section_spec.rb +0 -145
- data/spec/models/sections_created_spec.rb +0 -59
- data/spec/models/sections_deleted_spec.rb +0 -59
- data/spec/models/sections_response_spec.rb +0 -41
- data/spec/models/sections_updated_spec.rb +0 -65
- data/spec/models/student_object_spec.rb +0 -41
- data/spec/models/student_response_spec.rb +0 -41
- data/spec/models/student_spec.rb +0 -215
- data/spec/models/students_created_spec.rb +0 -59
- data/spec/models/students_deleted_spec.rb +0 -59
- data/spec/models/students_response_spec.rb +0 -41
- data/spec/models/students_updated_spec.rb +0 -65
- data/spec/models/teacher_object_spec.rb +0 -41
- data/spec/models/teacher_response_spec.rb +0 -41
- data/spec/models/teacher_spec.rb +0 -119
- data/spec/models/teachers_created_spec.rb +0 -59
- data/spec/models/teachers_deleted_spec.rb +0 -59
- data/spec/models/teachers_response_spec.rb +0 -41
- data/spec/models/teachers_updated_spec.rb +0 -65
- data/spec/models/term_object_spec.rb +0 -41
- data/spec/models/term_response_spec.rb +0 -41
- data/spec/models/term_spec.rb +0 -65
- data/spec/models/terms_created_spec.rb +0 -59
- data/spec/models/terms_deleted_spec.rb +0 -59
- data/spec/models/terms_response_spec.rb +0 -41
- data/spec/models/terms_updated_spec.rb +0 -65
- data/tags +0 -1681
@@ -1,12 +1,12 @@
|
|
1
1
|
=begin
|
2
|
-
#
|
2
|
+
#Data API
|
3
3
|
|
4
|
-
#
|
4
|
+
#Serves the Clever Data API
|
5
5
|
|
6
6
|
OpenAPI spec version: 2.1.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.4.
|
9
|
+
Swagger Codegen version: 2.4.37
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -14,18 +14,16 @@ require 'date'
|
|
14
14
|
|
15
15
|
module Clever
|
16
16
|
class Section
|
17
|
+
attr_accessor :id
|
18
|
+
|
17
19
|
attr_accessor :course
|
18
20
|
|
19
21
|
attr_accessor :created
|
20
22
|
|
21
23
|
attr_accessor :district
|
22
24
|
|
23
|
-
attr_accessor :ext
|
24
|
-
|
25
25
|
attr_accessor :grade
|
26
26
|
|
27
|
-
attr_accessor :id
|
28
|
-
|
29
27
|
attr_accessor :last_modified
|
30
28
|
|
31
29
|
attr_accessor :name
|
@@ -48,6 +46,8 @@ module Clever
|
|
48
46
|
|
49
47
|
attr_accessor :term_id
|
50
48
|
|
49
|
+
attr_accessor :ext
|
50
|
+
|
51
51
|
class EnumAttributeValidator
|
52
52
|
attr_reader :datatype
|
53
53
|
attr_reader :allowable_values
|
@@ -73,12 +73,11 @@ module Clever
|
|
73
73
|
# Attribute mapping from ruby-style variable name to JSON key.
|
74
74
|
def self.attribute_map
|
75
75
|
{
|
76
|
+
:'id' => :'id',
|
76
77
|
:'course' => :'course',
|
77
78
|
:'created' => :'created',
|
78
79
|
:'district' => :'district',
|
79
|
-
:'ext' => :'ext',
|
80
80
|
:'grade' => :'grade',
|
81
|
-
:'id' => :'id',
|
82
81
|
:'last_modified' => :'last_modified',
|
83
82
|
:'name' => :'name',
|
84
83
|
:'period' => :'period',
|
@@ -89,19 +88,19 @@ module Clever
|
|
89
88
|
:'subject' => :'subject',
|
90
89
|
:'teacher' => :'teacher',
|
91
90
|
:'teachers' => :'teachers',
|
92
|
-
:'term_id' => :'term_id'
|
91
|
+
:'term_id' => :'term_id',
|
92
|
+
:'ext' => :'ext'
|
93
93
|
}
|
94
94
|
end
|
95
95
|
|
96
96
|
# Attribute type mapping.
|
97
97
|
def self.swagger_types
|
98
98
|
{
|
99
|
+
:'id' => :'String',
|
99
100
|
:'course' => :'String',
|
100
101
|
:'created' => :'String',
|
101
102
|
:'district' => :'String',
|
102
|
-
:'ext' => :'Object',
|
103
103
|
:'grade' => :'String',
|
104
|
-
:'id' => :'String',
|
105
104
|
:'last_modified' => :'String',
|
106
105
|
:'name' => :'String',
|
107
106
|
:'period' => :'String',
|
@@ -112,7 +111,8 @@ module Clever
|
|
112
111
|
:'subject' => :'String',
|
113
112
|
:'teacher' => :'String',
|
114
113
|
:'teachers' => :'Array<String>',
|
115
|
-
:'term_id' => :'String'
|
114
|
+
:'term_id' => :'String',
|
115
|
+
:'ext' => :'Object'
|
116
116
|
}
|
117
117
|
end
|
118
118
|
|
@@ -124,6 +124,10 @@ module Clever
|
|
124
124
|
# convert string to symbol for hash key
|
125
125
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
126
126
|
|
127
|
+
if attributes.has_key?(:'id')
|
128
|
+
self.id = attributes[:'id']
|
129
|
+
end
|
130
|
+
|
127
131
|
if attributes.has_key?(:'course')
|
128
132
|
self.course = attributes[:'course']
|
129
133
|
end
|
@@ -136,18 +140,10 @@ module Clever
|
|
136
140
|
self.district = attributes[:'district']
|
137
141
|
end
|
138
142
|
|
139
|
-
if attributes.has_key?(:'ext')
|
140
|
-
self.ext = attributes[:'ext']
|
141
|
-
end
|
142
|
-
|
143
143
|
if attributes.has_key?(:'grade')
|
144
144
|
self.grade = attributes[:'grade']
|
145
145
|
end
|
146
146
|
|
147
|
-
if attributes.has_key?(:'id')
|
148
|
-
self.id = attributes[:'id']
|
149
|
-
end
|
150
|
-
|
151
147
|
if attributes.has_key?(:'last_modified')
|
152
148
|
self.last_modified = attributes[:'last_modified']
|
153
149
|
end
|
@@ -195,6 +191,10 @@ module Clever
|
|
195
191
|
if attributes.has_key?(:'term_id')
|
196
192
|
self.term_id = attributes[:'term_id']
|
197
193
|
end
|
194
|
+
|
195
|
+
if attributes.has_key?(:'ext')
|
196
|
+
self.ext = attributes[:'ext']
|
197
|
+
end
|
198
198
|
end
|
199
199
|
|
200
200
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -239,12 +239,11 @@ module Clever
|
|
239
239
|
def ==(o)
|
240
240
|
return true if self.equal?(o)
|
241
241
|
self.class == o.class &&
|
242
|
+
id == o.id &&
|
242
243
|
course == o.course &&
|
243
244
|
created == o.created &&
|
244
245
|
district == o.district &&
|
245
|
-
ext == o.ext &&
|
246
246
|
grade == o.grade &&
|
247
|
-
id == o.id &&
|
248
247
|
last_modified == o.last_modified &&
|
249
248
|
name == o.name &&
|
250
249
|
period == o.period &&
|
@@ -255,7 +254,8 @@ module Clever
|
|
255
254
|
subject == o.subject &&
|
256
255
|
teacher == o.teacher &&
|
257
256
|
teachers == o.teachers &&
|
258
|
-
term_id == o.term_id
|
257
|
+
term_id == o.term_id &&
|
258
|
+
ext == o.ext
|
259
259
|
end
|
260
260
|
|
261
261
|
# @see the `==` method
|
@@ -267,7 +267,7 @@ module Clever
|
|
267
267
|
# Calculates hash code according to all attributes.
|
268
268
|
# @return [Fixnum] Hash code
|
269
269
|
def hash
|
270
|
-
[course, created, district,
|
270
|
+
[id, course, created, district, grade, last_modified, name, period, school, section_number, sis_id, students, subject, teacher, teachers, term_id, ext].hash
|
271
271
|
end
|
272
272
|
|
273
273
|
# Builds the object from hash
|
@@ -1,12 +1,12 @@
|
|
1
1
|
=begin
|
2
|
-
#
|
2
|
+
#Data API
|
3
3
|
|
4
|
-
#
|
4
|
+
#Serves the Clever Data API
|
5
5
|
|
6
6
|
OpenAPI spec version: 2.1.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.4.
|
9
|
+
Swagger Codegen version: 2.4.37
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -1,12 +1,12 @@
|
|
1
1
|
=begin
|
2
|
-
#
|
2
|
+
#Data API
|
3
3
|
|
4
|
-
#
|
4
|
+
#Serves the Clever Data API
|
5
5
|
|
6
6
|
OpenAPI spec version: 2.1.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.4.
|
9
|
+
Swagger Codegen version: 2.4.37
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -1,12 +1,12 @@
|
|
1
1
|
=begin
|
2
|
-
#
|
2
|
+
#Data API
|
3
3
|
|
4
|
-
#
|
4
|
+
#Serves the Clever Data API
|
5
5
|
|
6
6
|
OpenAPI spec version: 2.1.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.4.
|
9
|
+
Swagger Codegen version: 2.4.37
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -1,12 +1,12 @@
|
|
1
1
|
=begin
|
2
|
-
#
|
2
|
+
#Data API
|
3
3
|
|
4
|
-
#
|
4
|
+
#Serves the Clever Data API
|
5
5
|
|
6
6
|
OpenAPI spec version: 2.1.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.4.
|
9
|
+
Swagger Codegen version: 2.4.37
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -14,6 +14,8 @@ require 'date'
|
|
14
14
|
|
15
15
|
module Clever
|
16
16
|
class Student
|
17
|
+
attr_accessor :id
|
18
|
+
|
17
19
|
attr_accessor :created
|
18
20
|
|
19
21
|
attr_accessor :credentials
|
@@ -28,20 +30,16 @@ module Clever
|
|
28
30
|
|
29
31
|
attr_accessor :enrollments
|
30
32
|
|
31
|
-
attr_accessor :ext
|
32
|
-
|
33
33
|
attr_accessor :gender
|
34
34
|
|
35
|
-
attr_accessor :grade
|
36
|
-
|
37
35
|
attr_accessor :graduation_year
|
38
36
|
|
37
|
+
attr_accessor :grade
|
38
|
+
|
39
39
|
attr_accessor :hispanic_ethnicity
|
40
40
|
|
41
41
|
attr_accessor :home_language
|
42
42
|
|
43
|
-
attr_accessor :id
|
44
|
-
|
45
43
|
attr_accessor :iep_status
|
46
44
|
|
47
45
|
attr_accessor :last_modified
|
@@ -66,6 +64,8 @@ module Clever
|
|
66
64
|
|
67
65
|
attr_accessor :weighted_gpa
|
68
66
|
|
67
|
+
attr_accessor :ext
|
68
|
+
|
69
69
|
class EnumAttributeValidator
|
70
70
|
attr_reader :datatype
|
71
71
|
attr_reader :allowable_values
|
@@ -91,6 +91,7 @@ module Clever
|
|
91
91
|
# Attribute mapping from ruby-style variable name to JSON key.
|
92
92
|
def self.attribute_map
|
93
93
|
{
|
94
|
+
:'id' => :'id',
|
94
95
|
:'created' => :'created',
|
95
96
|
:'credentials' => :'credentials',
|
96
97
|
:'district' => :'district',
|
@@ -98,13 +99,11 @@ module Clever
|
|
98
99
|
:'ell_status' => :'ell_status',
|
99
100
|
:'email' => :'email',
|
100
101
|
:'enrollments' => :'enrollments',
|
101
|
-
:'ext' => :'ext',
|
102
102
|
:'gender' => :'gender',
|
103
|
-
:'grade' => :'grade',
|
104
103
|
:'graduation_year' => :'graduation_year',
|
104
|
+
:'grade' => :'grade',
|
105
105
|
:'hispanic_ethnicity' => :'hispanic_ethnicity',
|
106
106
|
:'home_language' => :'home_language',
|
107
|
-
:'id' => :'id',
|
108
107
|
:'iep_status' => :'iep_status',
|
109
108
|
:'last_modified' => :'last_modified',
|
110
109
|
:'location' => :'location',
|
@@ -116,13 +115,15 @@ module Clever
|
|
116
115
|
:'state_id' => :'state_id',
|
117
116
|
:'student_number' => :'student_number',
|
118
117
|
:'unweighted_gpa' => :'unweighted_gpa',
|
119
|
-
:'weighted_gpa' => :'weighted_gpa'
|
118
|
+
:'weighted_gpa' => :'weighted_gpa',
|
119
|
+
:'ext' => :'ext'
|
120
120
|
}
|
121
121
|
end
|
122
122
|
|
123
123
|
# Attribute type mapping.
|
124
124
|
def self.swagger_types
|
125
125
|
{
|
126
|
+
:'id' => :'String',
|
126
127
|
:'created' => :'String',
|
127
128
|
:'credentials' => :'Credentials',
|
128
129
|
:'district' => :'String',
|
@@ -130,13 +131,11 @@ module Clever
|
|
130
131
|
:'ell_status' => :'String',
|
131
132
|
:'email' => :'String',
|
132
133
|
:'enrollments' => :'Array<SchoolEnrollment>',
|
133
|
-
:'ext' => :'Object',
|
134
134
|
:'gender' => :'String',
|
135
|
-
:'grade' => :'String',
|
136
135
|
:'graduation_year' => :'String',
|
136
|
+
:'grade' => :'String',
|
137
137
|
:'hispanic_ethnicity' => :'String',
|
138
138
|
:'home_language' => :'String',
|
139
|
-
:'id' => :'String',
|
140
139
|
:'iep_status' => :'String',
|
141
140
|
:'last_modified' => :'String',
|
142
141
|
:'location' => :'Location',
|
@@ -148,7 +147,8 @@ module Clever
|
|
148
147
|
:'state_id' => :'String',
|
149
148
|
:'student_number' => :'String',
|
150
149
|
:'unweighted_gpa' => :'String',
|
151
|
-
:'weighted_gpa' => :'String'
|
150
|
+
:'weighted_gpa' => :'String',
|
151
|
+
:'ext' => :'Object'
|
152
152
|
}
|
153
153
|
end
|
154
154
|
|
@@ -160,6 +160,10 @@ module Clever
|
|
160
160
|
# convert string to symbol for hash key
|
161
161
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
162
162
|
|
163
|
+
if attributes.has_key?(:'id')
|
164
|
+
self.id = attributes[:'id']
|
165
|
+
end
|
166
|
+
|
163
167
|
if attributes.has_key?(:'created')
|
164
168
|
self.created = attributes[:'created']
|
165
169
|
end
|
@@ -190,22 +194,18 @@ module Clever
|
|
190
194
|
end
|
191
195
|
end
|
192
196
|
|
193
|
-
if attributes.has_key?(:'ext')
|
194
|
-
self.ext = attributes[:'ext']
|
195
|
-
end
|
196
|
-
|
197
197
|
if attributes.has_key?(:'gender')
|
198
198
|
self.gender = attributes[:'gender']
|
199
199
|
end
|
200
200
|
|
201
|
-
if attributes.has_key?(:'grade')
|
202
|
-
self.grade = attributes[:'grade']
|
203
|
-
end
|
204
|
-
|
205
201
|
if attributes.has_key?(:'graduation_year')
|
206
202
|
self.graduation_year = attributes[:'graduation_year']
|
207
203
|
end
|
208
204
|
|
205
|
+
if attributes.has_key?(:'grade')
|
206
|
+
self.grade = attributes[:'grade']
|
207
|
+
end
|
208
|
+
|
209
209
|
if attributes.has_key?(:'hispanic_ethnicity')
|
210
210
|
self.hispanic_ethnicity = attributes[:'hispanic_ethnicity']
|
211
211
|
end
|
@@ -214,10 +214,6 @@ module Clever
|
|
214
214
|
self.home_language = attributes[:'home_language']
|
215
215
|
end
|
216
216
|
|
217
|
-
if attributes.has_key?(:'id')
|
218
|
-
self.id = attributes[:'id']
|
219
|
-
end
|
220
|
-
|
221
217
|
if attributes.has_key?(:'iep_status')
|
222
218
|
self.iep_status = attributes[:'iep_status']
|
223
219
|
end
|
@@ -267,18 +263,27 @@ module Clever
|
|
267
263
|
if attributes.has_key?(:'weighted_gpa')
|
268
264
|
self.weighted_gpa = attributes[:'weighted_gpa']
|
269
265
|
end
|
266
|
+
|
267
|
+
if attributes.has_key?(:'ext')
|
268
|
+
self.ext = attributes[:'ext']
|
269
|
+
end
|
270
270
|
end
|
271
271
|
|
272
272
|
# Show invalid properties with the reasons. Usually used together with valid?
|
273
273
|
# @return Array for valid properties with the reasons
|
274
274
|
def list_invalid_properties
|
275
275
|
invalid_properties = Array.new
|
276
|
+
if !@dob.nil? && @dob !~ Regexp.new(/(?:[0-9]{1,2})\/([0-9]{1,2})\/([0-9]{4})/)
|
277
|
+
invalid_properties.push('invalid value for "dob", must conform to the pattern /(?:[0-9]{1,2})\/([0-9]{1,2})\/([0-9]{4})/.')
|
278
|
+
end
|
279
|
+
|
276
280
|
invalid_properties
|
277
281
|
end
|
278
282
|
|
279
283
|
# Check to see if the all the properties in the model are valid
|
280
284
|
# @return true if the model is valid
|
281
285
|
def valid?
|
286
|
+
return false if !@dob.nil? && @dob !~ Regexp.new(/(?:[0-9]{1,2})\/([0-9]{1,2})\/([0-9]{4})/)
|
282
287
|
ell_status_validator = EnumAttributeValidator.new('String', ['Y', 'N', ''])
|
283
288
|
return false unless ell_status_validator.valid?(@ell_status)
|
284
289
|
gender_validator = EnumAttributeValidator.new('String', ['M', 'F', 'X', ''])
|
@@ -294,6 +299,16 @@ module Clever
|
|
294
299
|
true
|
295
300
|
end
|
296
301
|
|
302
|
+
# Custom attribute writer method with validation
|
303
|
+
# @param [Object] dob Value to be assigned
|
304
|
+
def dob=(dob)
|
305
|
+
if !dob.nil? && dob !~ Regexp.new(/(?:[0-9]{1,2})\/([0-9]{1,2})\/([0-9]{4})/)
|
306
|
+
fail ArgumentError, 'invalid value for "dob", must conform to the pattern /(?:[0-9]{1,2})\/([0-9]{1,2})\/([0-9]{4})/.'
|
307
|
+
end
|
308
|
+
|
309
|
+
@dob = dob
|
310
|
+
end
|
311
|
+
|
297
312
|
# Custom attribute writer method checking allowed values (enum).
|
298
313
|
# @param [Object] ell_status Object to be assigned
|
299
314
|
def ell_status=(ell_status)
|
@@ -359,6 +374,7 @@ module Clever
|
|
359
374
|
def ==(o)
|
360
375
|
return true if self.equal?(o)
|
361
376
|
self.class == o.class &&
|
377
|
+
id == o.id &&
|
362
378
|
created == o.created &&
|
363
379
|
credentials == o.credentials &&
|
364
380
|
district == o.district &&
|
@@ -366,13 +382,11 @@ module Clever
|
|
366
382
|
ell_status == o.ell_status &&
|
367
383
|
email == o.email &&
|
368
384
|
enrollments == o.enrollments &&
|
369
|
-
ext == o.ext &&
|
370
385
|
gender == o.gender &&
|
371
|
-
grade == o.grade &&
|
372
386
|
graduation_year == o.graduation_year &&
|
387
|
+
grade == o.grade &&
|
373
388
|
hispanic_ethnicity == o.hispanic_ethnicity &&
|
374
389
|
home_language == o.home_language &&
|
375
|
-
id == o.id &&
|
376
390
|
iep_status == o.iep_status &&
|
377
391
|
last_modified == o.last_modified &&
|
378
392
|
location == o.location &&
|
@@ -384,7 +398,8 @@ module Clever
|
|
384
398
|
state_id == o.state_id &&
|
385
399
|
student_number == o.student_number &&
|
386
400
|
unweighted_gpa == o.unweighted_gpa &&
|
387
|
-
weighted_gpa == o.weighted_gpa
|
401
|
+
weighted_gpa == o.weighted_gpa &&
|
402
|
+
ext == o.ext
|
388
403
|
end
|
389
404
|
|
390
405
|
# @see the `==` method
|
@@ -396,7 +411,7 @@ module Clever
|
|
396
411
|
# Calculates hash code according to all attributes.
|
397
412
|
# @return [Fixnum] Hash code
|
398
413
|
def hash
|
399
|
-
[created, credentials, district, dob, ell_status, email, enrollments,
|
414
|
+
[id, created, credentials, district, dob, ell_status, email, enrollments, gender, graduation_year, grade, hispanic_ethnicity, home_language, iep_status, last_modified, location, name, race, school, schools, sis_id, state_id, student_number, unweighted_gpa, weighted_gpa, ext].hash
|
400
415
|
end
|
401
416
|
|
402
417
|
# Builds the object from hash
|
@@ -1,12 +1,12 @@
|
|
1
1
|
=begin
|
2
|
-
#
|
2
|
+
#Data API
|
3
3
|
|
4
|
-
#
|
4
|
+
#Serves the Clever Data API
|
5
5
|
|
6
6
|
OpenAPI spec version: 2.1.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.4.
|
9
|
+
Swagger Codegen version: 2.4.37
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -1,12 +1,12 @@
|
|
1
1
|
=begin
|
2
|
-
#
|
2
|
+
#Data API
|
3
3
|
|
4
|
-
#
|
4
|
+
#Serves the Clever Data API
|
5
5
|
|
6
6
|
OpenAPI spec version: 2.1.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.4.
|
9
|
+
Swagger Codegen version: 2.4.37
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -1,12 +1,12 @@
|
|
1
1
|
=begin
|
2
|
-
#
|
2
|
+
#Data API
|
3
3
|
|
4
|
-
#
|
4
|
+
#Serves the Clever Data API
|
5
5
|
|
6
6
|
OpenAPI spec version: 2.1.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.4.
|
9
|
+
Swagger Codegen version: 2.4.37
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -1,12 +1,12 @@
|
|
1
1
|
=begin
|
2
|
-
#
|
2
|
+
#Data API
|
3
3
|
|
4
|
-
#
|
4
|
+
#Serves the Clever Data API
|
5
5
|
|
6
6
|
OpenAPI spec version: 2.1.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.4.
|
9
|
+
Swagger Codegen version: 2.4.37
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -14,6 +14,8 @@ require 'date'
|
|
14
14
|
|
15
15
|
module Clever
|
16
16
|
class Teacher
|
17
|
+
attr_accessor :id
|
18
|
+
|
17
19
|
attr_accessor :created
|
18
20
|
|
19
21
|
attr_accessor :credentials
|
@@ -22,10 +24,6 @@ module Clever
|
|
22
24
|
|
23
25
|
attr_accessor :email
|
24
26
|
|
25
|
-
attr_accessor :ext
|
26
|
-
|
27
|
-
attr_accessor :id
|
28
|
-
|
29
27
|
attr_accessor :last_modified
|
30
28
|
|
31
29
|
attr_accessor :name
|
@@ -42,15 +40,16 @@ module Clever
|
|
42
40
|
|
43
41
|
attr_accessor :title
|
44
42
|
|
43
|
+
attr_accessor :ext
|
44
|
+
|
45
45
|
# Attribute mapping from ruby-style variable name to JSON key.
|
46
46
|
def self.attribute_map
|
47
47
|
{
|
48
|
+
:'id' => :'id',
|
48
49
|
:'created' => :'created',
|
49
50
|
:'credentials' => :'credentials',
|
50
51
|
:'district' => :'district',
|
51
52
|
:'email' => :'email',
|
52
|
-
:'ext' => :'ext',
|
53
|
-
:'id' => :'id',
|
54
53
|
:'last_modified' => :'last_modified',
|
55
54
|
:'name' => :'name',
|
56
55
|
:'school' => :'school',
|
@@ -58,19 +57,19 @@ module Clever
|
|
58
57
|
:'sis_id' => :'sis_id',
|
59
58
|
:'state_id' => :'state_id',
|
60
59
|
:'teacher_number' => :'teacher_number',
|
61
|
-
:'title' => :'title'
|
60
|
+
:'title' => :'title',
|
61
|
+
:'ext' => :'ext'
|
62
62
|
}
|
63
63
|
end
|
64
64
|
|
65
65
|
# Attribute type mapping.
|
66
66
|
def self.swagger_types
|
67
67
|
{
|
68
|
+
:'id' => :'String',
|
68
69
|
:'created' => :'String',
|
69
70
|
:'credentials' => :'Credentials',
|
70
71
|
:'district' => :'String',
|
71
72
|
:'email' => :'String',
|
72
|
-
:'ext' => :'Object',
|
73
|
-
:'id' => :'String',
|
74
73
|
:'last_modified' => :'String',
|
75
74
|
:'name' => :'Name',
|
76
75
|
:'school' => :'String',
|
@@ -78,7 +77,8 @@ module Clever
|
|
78
77
|
:'sis_id' => :'String',
|
79
78
|
:'state_id' => :'String',
|
80
79
|
:'teacher_number' => :'String',
|
81
|
-
:'title' => :'String'
|
80
|
+
:'title' => :'String',
|
81
|
+
:'ext' => :'Object'
|
82
82
|
}
|
83
83
|
end
|
84
84
|
|
@@ -90,6 +90,10 @@ module Clever
|
|
90
90
|
# convert string to symbol for hash key
|
91
91
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
92
92
|
|
93
|
+
if attributes.has_key?(:'id')
|
94
|
+
self.id = attributes[:'id']
|
95
|
+
end
|
96
|
+
|
93
97
|
if attributes.has_key?(:'created')
|
94
98
|
self.created = attributes[:'created']
|
95
99
|
end
|
@@ -106,14 +110,6 @@ module Clever
|
|
106
110
|
self.email = attributes[:'email']
|
107
111
|
end
|
108
112
|
|
109
|
-
if attributes.has_key?(:'ext')
|
110
|
-
self.ext = attributes[:'ext']
|
111
|
-
end
|
112
|
-
|
113
|
-
if attributes.has_key?(:'id')
|
114
|
-
self.id = attributes[:'id']
|
115
|
-
end
|
116
|
-
|
117
113
|
if attributes.has_key?(:'last_modified')
|
118
114
|
self.last_modified = attributes[:'last_modified']
|
119
115
|
end
|
@@ -147,6 +143,10 @@ module Clever
|
|
147
143
|
if attributes.has_key?(:'title')
|
148
144
|
self.title = attributes[:'title']
|
149
145
|
end
|
146
|
+
|
147
|
+
if attributes.has_key?(:'ext')
|
148
|
+
self.ext = attributes[:'ext']
|
149
|
+
end
|
150
150
|
end
|
151
151
|
|
152
152
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -167,12 +167,11 @@ module Clever
|
|
167
167
|
def ==(o)
|
168
168
|
return true if self.equal?(o)
|
169
169
|
self.class == o.class &&
|
170
|
+
id == o.id &&
|
170
171
|
created == o.created &&
|
171
172
|
credentials == o.credentials &&
|
172
173
|
district == o.district &&
|
173
174
|
email == o.email &&
|
174
|
-
ext == o.ext &&
|
175
|
-
id == o.id &&
|
176
175
|
last_modified == o.last_modified &&
|
177
176
|
name == o.name &&
|
178
177
|
school == o.school &&
|
@@ -180,7 +179,8 @@ module Clever
|
|
180
179
|
sis_id == o.sis_id &&
|
181
180
|
state_id == o.state_id &&
|
182
181
|
teacher_number == o.teacher_number &&
|
183
|
-
title == o.title
|
182
|
+
title == o.title &&
|
183
|
+
ext == o.ext
|
184
184
|
end
|
185
185
|
|
186
186
|
# @see the `==` method
|
@@ -192,7 +192,7 @@ module Clever
|
|
192
192
|
# Calculates hash code according to all attributes.
|
193
193
|
# @return [Fixnum] Hash code
|
194
194
|
def hash
|
195
|
-
[created, credentials, district, email,
|
195
|
+
[id, created, credentials, district, email, last_modified, name, school, schools, sis_id, state_id, teacher_number, title, ext].hash
|
196
196
|
end
|
197
197
|
|
198
198
|
# Builds the object from hash
|
@@ -1,12 +1,12 @@
|
|
1
1
|
=begin
|
2
|
-
#
|
2
|
+
#Data API
|
3
3
|
|
4
|
-
#
|
4
|
+
#Serves the Clever Data API
|
5
5
|
|
6
6
|
OpenAPI spec version: 2.1.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.4.
|
9
|
+
Swagger Codegen version: 2.4.37
|
10
10
|
|
11
11
|
=end
|
12
12
|
|