commonlit-clever-ruby 2.1.4 → 2.1.6.beta1

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.
Files changed (154) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +27 -30
  3. data/Makefile +1 -1
  4. data/README.md +60 -61
  5. data/clever-ruby.gemspec +6 -6
  6. data/docs/Contact.md +1 -1
  7. data/docs/ContactsApi.md +231 -0
  8. data/docs/ContactsCreated.md +2 -2
  9. data/docs/ContactsDeleted.md +2 -2
  10. data/docs/ContactsUpdated.md +2 -2
  11. data/docs/Course.md +1 -1
  12. data/docs/CoursesApi.md +231 -0
  13. data/docs/CoursesCreated.md +2 -2
  14. data/docs/CoursesDeleted.md +2 -2
  15. data/docs/CoursesUpdated.md +2 -2
  16. data/docs/District.md +9 -9
  17. data/docs/DistrictAdmin.md +2 -2
  18. data/docs/DistrictAdminsApi.md +171 -0
  19. data/docs/DistrictadminsCreated.md +2 -2
  20. data/docs/DistrictadminsDeleted.md +2 -2
  21. data/docs/DistrictadminsUpdated.md +2 -2
  22. data/docs/DistrictsApi.md +113 -0
  23. data/docs/DistrictsCreated.md +2 -2
  24. data/docs/DistrictsDeleted.md +2 -2
  25. data/docs/DistrictsUpdated.md +2 -2
  26. data/docs/Event.md +2 -2
  27. data/docs/EventsApi.md +1 -1
  28. data/docs/Location.md +2 -2
  29. data/docs/Name.md +1 -1
  30. data/docs/Principal.md +1 -1
  31. data/docs/School.md +3 -3
  32. data/docs/SchoolAdmin.md +3 -3
  33. data/docs/SchoolAdminsApi.md +231 -0
  34. data/docs/SchoolEnrollment.md +1 -1
  35. data/docs/SchooladminsCreated.md +2 -2
  36. data/docs/SchooladminsDeleted.md +2 -2
  37. data/docs/SchooladminsUpdated.md +2 -2
  38. data/docs/SchoolsApi.md +351 -0
  39. data/docs/SchoolsCreated.md +2 -2
  40. data/docs/SchoolsDeleted.md +2 -2
  41. data/docs/SchoolsUpdated.md +2 -2
  42. data/docs/Section.md +2 -2
  43. data/docs/SectionsApi.md +499 -0
  44. data/docs/SectionsCreated.md +2 -2
  45. data/docs/SectionsDeleted.md +2 -2
  46. data/docs/SectionsUpdated.md +2 -2
  47. data/docs/Student.md +3 -3
  48. data/docs/StudentsApi.md +463 -0
  49. data/docs/StudentsCreated.md +2 -2
  50. data/docs/StudentsDeleted.md +2 -2
  51. data/docs/StudentsUpdated.md +2 -2
  52. data/docs/Teacher.md +2 -2
  53. data/docs/TeachersApi.md +403 -0
  54. data/docs/TeachersCreated.md +2 -2
  55. data/docs/TeachersDeleted.md +2 -2
  56. data/docs/TeachersUpdated.md +2 -2
  57. data/docs/Term.md +2 -2
  58. data/docs/TermsApi.md +231 -0
  59. data/docs/TermsCreated.md +2 -2
  60. data/docs/TermsDeleted.md +2 -2
  61. data/docs/TermsUpdated.md +2 -2
  62. data/full-v2.yml +2541 -0
  63. data/lib/clever-ruby/api/contacts_api.rb +241 -0
  64. data/lib/clever-ruby/api/courses_api.rb +241 -0
  65. data/lib/clever-ruby/api/district_admins_api.rb +182 -0
  66. data/lib/clever-ruby/api/districts_api.rb +123 -0
  67. data/lib/clever-ruby/api/events_api.rb +3 -3
  68. data/lib/clever-ruby/api/school_admins_api.rb +241 -0
  69. data/lib/clever-ruby/api/schools_api.rb +359 -0
  70. data/lib/clever-ruby/api/sections_api.rb +500 -0
  71. data/lib/clever-ruby/api/students_api.rb +468 -0
  72. data/lib/clever-ruby/api/teachers_api.rb +409 -0
  73. data/lib/clever-ruby/api/terms_api.rb +241 -0
  74. data/lib/clever-ruby/api_client.rb +1 -0
  75. data/lib/clever-ruby/api_error.rb +3 -3
  76. data/lib/clever-ruby/configuration.rb +4 -4
  77. data/lib/clever-ruby/models/admin_name.rb +3 -3
  78. data/lib/clever-ruby/models/bad_request.rb +3 -3
  79. data/lib/clever-ruby/models/contact.rb +13 -13
  80. data/lib/clever-ruby/models/contact_object.rb +3 -3
  81. data/lib/clever-ruby/models/contact_response.rb +3 -3
  82. data/lib/clever-ruby/models/contacts_response.rb +3 -3
  83. data/lib/clever-ruby/models/course.rb +16 -16
  84. data/lib/clever-ruby/models/course_object.rb +3 -3
  85. data/lib/clever-ruby/models/course_response.rb +3 -3
  86. data/lib/clever-ruby/models/courses_response.rb +3 -3
  87. data/lib/clever-ruby/models/credentials.rb +3 -3
  88. data/lib/clever-ruby/models/district.rb +69 -69
  89. data/lib/clever-ruby/models/district_admin.rb +25 -25
  90. data/lib/clever-ruby/models/district_admin_object.rb +3 -3
  91. data/lib/clever-ruby/models/district_admin_response.rb +3 -3
  92. data/lib/clever-ruby/models/district_admins_response.rb +3 -3
  93. data/lib/clever-ruby/models/district_object.rb +3 -3
  94. data/lib/clever-ruby/models/district_response.rb +3 -3
  95. data/lib/clever-ruby/models/districts_response.rb +3 -3
  96. data/lib/clever-ruby/models/event.rb +16 -16
  97. data/lib/clever-ruby/models/event_response.rb +3 -3
  98. data/lib/clever-ruby/models/events_response.rb +3 -3
  99. data/lib/clever-ruby/models/internal_error.rb +3 -3
  100. data/lib/clever-ruby/models/link.rb +3 -3
  101. data/lib/clever-ruby/models/location.rb +25 -25
  102. data/lib/clever-ruby/models/name.rb +16 -16
  103. data/lib/clever-ruby/models/not_found.rb +3 -3
  104. data/lib/clever-ruby/models/principal.rb +16 -16
  105. data/lib/clever-ruby/models/school.rb +34 -34
  106. data/lib/clever-ruby/models/school_admin.rb +34 -34
  107. data/lib/clever-ruby/models/school_admin_object.rb +3 -3
  108. data/lib/clever-ruby/models/school_admin_response.rb +3 -3
  109. data/lib/clever-ruby/models/school_admins_response.rb +3 -3
  110. data/lib/clever-ruby/models/school_enrollment.rb +16 -16
  111. data/lib/clever-ruby/models/school_object.rb +3 -3
  112. data/lib/clever-ruby/models/school_response.rb +3 -3
  113. data/lib/clever-ruby/models/schools_response.rb +3 -3
  114. data/lib/clever-ruby/models/section.rb +25 -25
  115. data/lib/clever-ruby/models/section_object.rb +3 -3
  116. data/lib/clever-ruby/models/section_response.rb +3 -3
  117. data/lib/clever-ruby/models/sections_response.rb +3 -3
  118. data/lib/clever-ruby/models/student.rb +34 -34
  119. data/lib/clever-ruby/models/student_object.rb +3 -3
  120. data/lib/clever-ruby/models/student_response.rb +3 -3
  121. data/lib/clever-ruby/models/students_response.rb +3 -3
  122. data/lib/clever-ruby/models/teacher.rb +25 -25
  123. data/lib/clever-ruby/models/teacher_object.rb +3 -3
  124. data/lib/clever-ruby/models/teacher_response.rb +3 -3
  125. data/lib/clever-ruby/models/teachers_response.rb +3 -3
  126. data/lib/clever-ruby/models/term.rb +25 -25
  127. data/lib/clever-ruby/models/term_object.rb +3 -3
  128. data/lib/clever-ruby/models/term_response.rb +3 -3
  129. data/lib/clever-ruby/models/terms_response.rb +3 -3
  130. data/lib/clever-ruby/version.rb +4 -4
  131. data/lib/clever-ruby.rb +13 -4
  132. data/override/README-extension.md +4 -5
  133. data/override/api_client.rb +1 -0
  134. data/override/override.sh +4 -5
  135. data/spec/api/contacts_api_spec.rb +84 -0
  136. data/spec/api/courses_api_spec.rb +84 -0
  137. data/spec/api/district_admins_api_spec.rb +70 -0
  138. data/spec/api/districts_api_spec.rb +56 -0
  139. data/spec/api/events_api_spec.rb +60 -0
  140. data/spec/api/school_admins_api_spec.rb +84 -0
  141. data/spec/api/schools_api_spec.rb +112 -0
  142. data/spec/api/sections_api_spec.rb +142 -0
  143. data/spec/api/students_api_spec.rb +137 -0
  144. data/spec/api/teachers_api_spec.rb +123 -0
  145. data/spec/api/terms_api_spec.rb +84 -0
  146. data/spec/api_client_spec.rb +225 -0
  147. data/spec/spec_helper.rb +25 -18
  148. metadata +71 -33
  149. data/commonlit-clever-ruby-2.1.3.gem +0 -0
  150. data/docs/DataApi.md +0 -2852
  151. data/git_push.sh +0 -55
  152. data/lib/clever-ruby/api/data_api.rb +0 -2798
  153. data/spec/events.json +0 -227
  154. data/tags +0 -1681
@@ -1,12 +1,12 @@
1
1
  =begin
2
- #Clever API
2
+ #Data API
3
3
 
4
- #The Clever API
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.18
9
+ Swagger Codegen version: 2.4.37
10
10
 
11
11
  =end
12
12
 
@@ -14,24 +14,20 @@ require 'date'
14
14
 
15
15
  module Clever
16
16
  class School
17
+ attr_accessor :id
18
+
17
19
  attr_accessor :created
18
20
 
19
21
  attr_accessor :district
20
22
 
21
- attr_accessor :ext
22
-
23
23
  attr_accessor :high_grade
24
24
 
25
- attr_accessor :id
26
-
27
25
  attr_accessor :last_modified
28
26
 
29
27
  attr_accessor :location
30
28
 
31
29
  attr_accessor :low_grade
32
30
 
33
- attr_accessor :mdr_number
34
-
35
31
  attr_accessor :name
36
32
 
37
33
  attr_accessor :nces_id
@@ -46,6 +42,10 @@ module Clever
46
42
 
47
43
  attr_accessor :state_id
48
44
 
45
+ attr_accessor :mdr_number
46
+
47
+ attr_accessor :ext
48
+
49
49
  class EnumAttributeValidator
50
50
  attr_reader :datatype
51
51
  attr_reader :allowable_values
@@ -71,44 +71,44 @@ module Clever
71
71
  # Attribute mapping from ruby-style variable name to JSON key.
72
72
  def self.attribute_map
73
73
  {
74
+ :'id' => :'id',
74
75
  :'created' => :'created',
75
76
  :'district' => :'district',
76
- :'ext' => :'ext',
77
77
  :'high_grade' => :'high_grade',
78
- :'id' => :'id',
79
78
  :'last_modified' => :'last_modified',
80
79
  :'location' => :'location',
81
80
  :'low_grade' => :'low_grade',
82
- :'mdr_number' => :'mdr_number',
83
81
  :'name' => :'name',
84
82
  :'nces_id' => :'nces_id',
85
83
  :'phone' => :'phone',
86
84
  :'principal' => :'principal',
87
85
  :'school_number' => :'school_number',
88
86
  :'sis_id' => :'sis_id',
89
- :'state_id' => :'state_id'
87
+ :'state_id' => :'state_id',
88
+ :'mdr_number' => :'mdr_number',
89
+ :'ext' => :'ext'
90
90
  }
91
91
  end
92
92
 
93
93
  # Attribute type mapping.
94
94
  def self.swagger_types
95
95
  {
96
+ :'id' => :'String',
96
97
  :'created' => :'String',
97
98
  :'district' => :'String',
98
- :'ext' => :'Object',
99
99
  :'high_grade' => :'String',
100
- :'id' => :'String',
101
100
  :'last_modified' => :'String',
102
101
  :'location' => :'Location',
103
102
  :'low_grade' => :'String',
104
- :'mdr_number' => :'String',
105
103
  :'name' => :'String',
106
104
  :'nces_id' => :'String',
107
105
  :'phone' => :'String',
108
106
  :'principal' => :'Principal',
109
107
  :'school_number' => :'String',
110
108
  :'sis_id' => :'String',
111
- :'state_id' => :'String'
109
+ :'state_id' => :'String',
110
+ :'mdr_number' => :'String',
111
+ :'ext' => :'Object'
112
112
  }
113
113
  end
114
114
 
@@ -120,6 +120,10 @@ module Clever
120
120
  # convert string to symbol for hash key
121
121
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
122
122
 
123
+ if attributes.has_key?(:'id')
124
+ self.id = attributes[:'id']
125
+ end
126
+
123
127
  if attributes.has_key?(:'created')
124
128
  self.created = attributes[:'created']
125
129
  end
@@ -128,18 +132,10 @@ module Clever
128
132
  self.district = attributes[:'district']
129
133
  end
130
134
 
131
- if attributes.has_key?(:'ext')
132
- self.ext = attributes[:'ext']
133
- end
134
-
135
135
  if attributes.has_key?(:'high_grade')
136
136
  self.high_grade = attributes[:'high_grade']
137
137
  end
138
138
 
139
- if attributes.has_key?(:'id')
140
- self.id = attributes[:'id']
141
- end
142
-
143
139
  if attributes.has_key?(:'last_modified')
144
140
  self.last_modified = attributes[:'last_modified']
145
141
  end
@@ -152,10 +148,6 @@ module Clever
152
148
  self.low_grade = attributes[:'low_grade']
153
149
  end
154
150
 
155
- if attributes.has_key?(:'mdr_number')
156
- self.mdr_number = attributes[:'mdr_number']
157
- end
158
-
159
151
  if attributes.has_key?(:'name')
160
152
  self.name = attributes[:'name']
161
153
  end
@@ -183,6 +175,14 @@ module Clever
183
175
  if attributes.has_key?(:'state_id')
184
176
  self.state_id = attributes[:'state_id']
185
177
  end
178
+
179
+ if attributes.has_key?(:'mdr_number')
180
+ self.mdr_number = attributes[:'mdr_number']
181
+ end
182
+
183
+ if attributes.has_key?(:'ext')
184
+ self.ext = attributes[:'ext']
185
+ end
186
186
  end
187
187
 
188
188
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -227,22 +227,22 @@ module Clever
227
227
  def ==(o)
228
228
  return true if self.equal?(o)
229
229
  self.class == o.class &&
230
+ id == o.id &&
230
231
  created == o.created &&
231
232
  district == o.district &&
232
- ext == o.ext &&
233
233
  high_grade == o.high_grade &&
234
- id == o.id &&
235
234
  last_modified == o.last_modified &&
236
235
  location == o.location &&
237
236
  low_grade == o.low_grade &&
238
- mdr_number == o.mdr_number &&
239
237
  name == o.name &&
240
238
  nces_id == o.nces_id &&
241
239
  phone == o.phone &&
242
240
  principal == o.principal &&
243
241
  school_number == o.school_number &&
244
242
  sis_id == o.sis_id &&
245
- state_id == o.state_id
243
+ state_id == o.state_id &&
244
+ mdr_number == o.mdr_number &&
245
+ ext == o.ext
246
246
  end
247
247
 
248
248
  # @see the `==` method
@@ -254,7 +254,7 @@ module Clever
254
254
  # Calculates hash code according to all attributes.
255
255
  # @return [Fixnum] Hash code
256
256
  def hash
257
- [created, district, ext, high_grade, id, last_modified, location, low_grade, mdr_number, name, nces_id, phone, principal, school_number, sis_id, state_id].hash
257
+ [id, created, district, high_grade, last_modified, location, low_grade, name, nces_id, phone, principal, school_number, sis_id, state_id, mdr_number, ext].hash
258
258
  end
259
259
 
260
260
  # Builds the object from hash
@@ -1,12 +1,12 @@
1
1
  =begin
2
- #Clever API
2
+ #Data API
3
3
 
4
- #The Clever API
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.18
9
+ Swagger Codegen version: 2.4.37
10
10
 
11
11
  =end
12
12
 
@@ -14,18 +14,14 @@ require 'date'
14
14
 
15
15
  module Clever
16
16
  class SchoolAdmin
17
- attr_accessor :credentials
17
+ attr_accessor :id
18
18
 
19
- attr_accessor :department
19
+ attr_accessor :credentials
20
20
 
21
21
  attr_accessor :district
22
22
 
23
23
  attr_accessor :email
24
24
 
25
- attr_accessor :ext
26
-
27
- attr_accessor :id
28
-
29
25
  attr_accessor :name
30
26
 
31
27
  attr_accessor :schools
@@ -34,35 +30,39 @@ module Clever
34
30
 
35
31
  attr_accessor :title
36
32
 
33
+ attr_accessor :department
34
+
35
+ attr_accessor :ext
36
+
37
37
  # Attribute mapping from ruby-style variable name to JSON key.
38
38
  def self.attribute_map
39
39
  {
40
+ :'id' => :'id',
40
41
  :'credentials' => :'credentials',
41
- :'department' => :'department',
42
42
  :'district' => :'district',
43
43
  :'email' => :'email',
44
- :'ext' => :'ext',
45
- :'id' => :'id',
46
44
  :'name' => :'name',
47
45
  :'schools' => :'schools',
48
46
  :'staff_id' => :'staff_id',
49
- :'title' => :'title'
47
+ :'title' => :'title',
48
+ :'department' => :'department',
49
+ :'ext' => :'ext'
50
50
  }
51
51
  end
52
52
 
53
53
  # Attribute type mapping.
54
54
  def self.swagger_types
55
55
  {
56
+ :'id' => :'String',
56
57
  :'credentials' => :'Credentials',
57
- :'department' => :'String',
58
58
  :'district' => :'String',
59
59
  :'email' => :'String',
60
- :'ext' => :'Object',
61
- :'id' => :'String',
62
60
  :'name' => :'AdminName',
63
61
  :'schools' => :'Array<String>',
64
62
  :'staff_id' => :'String',
65
- :'title' => :'String'
63
+ :'title' => :'String',
64
+ :'department' => :'String',
65
+ :'ext' => :'Object'
66
66
  }
67
67
  end
68
68
 
@@ -74,12 +74,12 @@ module Clever
74
74
  # convert string to symbol for hash key
75
75
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
76
76
 
77
- if attributes.has_key?(:'credentials')
78
- self.credentials = attributes[:'credentials']
77
+ if attributes.has_key?(:'id')
78
+ self.id = attributes[:'id']
79
79
  end
80
80
 
81
- if attributes.has_key?(:'department')
82
- self.department = attributes[:'department']
81
+ if attributes.has_key?(:'credentials')
82
+ self.credentials = attributes[:'credentials']
83
83
  end
84
84
 
85
85
  if attributes.has_key?(:'district')
@@ -90,14 +90,6 @@ module Clever
90
90
  self.email = attributes[:'email']
91
91
  end
92
92
 
93
- if attributes.has_key?(:'ext')
94
- self.ext = attributes[:'ext']
95
- end
96
-
97
- if attributes.has_key?(:'id')
98
- self.id = attributes[:'id']
99
- end
100
-
101
93
  if attributes.has_key?(:'name')
102
94
  self.name = attributes[:'name']
103
95
  end
@@ -115,6 +107,14 @@ module Clever
115
107
  if attributes.has_key?(:'title')
116
108
  self.title = attributes[:'title']
117
109
  end
110
+
111
+ if attributes.has_key?(:'department')
112
+ self.department = attributes[:'department']
113
+ end
114
+
115
+ if attributes.has_key?(:'ext')
116
+ self.ext = attributes[:'ext']
117
+ end
118
118
  end
119
119
 
120
120
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -135,16 +135,16 @@ module Clever
135
135
  def ==(o)
136
136
  return true if self.equal?(o)
137
137
  self.class == o.class &&
138
+ id == o.id &&
138
139
  credentials == o.credentials &&
139
- department == o.department &&
140
140
  district == o.district &&
141
141
  email == o.email &&
142
- ext == o.ext &&
143
- id == o.id &&
144
142
  name == o.name &&
145
143
  schools == o.schools &&
146
144
  staff_id == o.staff_id &&
147
- title == o.title
145
+ title == o.title &&
146
+ department == o.department &&
147
+ ext == o.ext
148
148
  end
149
149
 
150
150
  # @see the `==` method
@@ -156,7 +156,7 @@ module Clever
156
156
  # Calculates hash code according to all attributes.
157
157
  # @return [Fixnum] Hash code
158
158
  def hash
159
- [credentials, department, district, email, ext, id, name, schools, staff_id, title].hash
159
+ [id, credentials, district, email, name, schools, staff_id, title, department, ext].hash
160
160
  end
161
161
 
162
162
  # Builds the object from hash
@@ -1,12 +1,12 @@
1
1
  =begin
2
- #Clever API
2
+ #Data API
3
3
 
4
- #The Clever API
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.18
9
+ Swagger Codegen version: 2.4.37
10
10
 
11
11
  =end
12
12
 
@@ -1,12 +1,12 @@
1
1
  =begin
2
- #Clever API
2
+ #Data API
3
3
 
4
- #The Clever API
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.18
9
+ Swagger Codegen version: 2.4.37
10
10
 
11
11
  =end
12
12
 
@@ -1,12 +1,12 @@
1
1
  =begin
2
- #Clever API
2
+ #Data API
3
3
 
4
- #The Clever API
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.18
9
+ Swagger Codegen version: 2.4.37
10
10
 
11
11
  =end
12
12
 
@@ -1,12 +1,12 @@
1
1
  =begin
2
- #Clever API
2
+ #Data API
3
3
 
4
- #The Clever API
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.18
9
+ Swagger Codegen version: 2.4.37
10
10
 
11
11
  =end
12
12
 
@@ -14,27 +14,27 @@ require 'date'
14
14
 
15
15
  module Clever
16
16
  class SchoolEnrollment
17
- attr_accessor :end_date
18
-
19
17
  attr_accessor :school
20
18
 
21
19
  attr_accessor :start_date
22
20
 
21
+ attr_accessor :end_date
22
+
23
23
  # Attribute mapping from ruby-style variable name to JSON key.
24
24
  def self.attribute_map
25
25
  {
26
- :'end_date' => :'end_date',
27
26
  :'school' => :'school',
28
- :'start_date' => :'start_date'
27
+ :'start_date' => :'start_date',
28
+ :'end_date' => :'end_date'
29
29
  }
30
30
  end
31
31
 
32
32
  # Attribute type mapping.
33
33
  def self.swagger_types
34
34
  {
35
- :'end_date' => :'String',
36
35
  :'school' => :'String',
37
- :'start_date' => :'String'
36
+ :'start_date' => :'String',
37
+ :'end_date' => :'String'
38
38
  }
39
39
  end
40
40
 
@@ -46,10 +46,6 @@ module Clever
46
46
  # convert string to symbol for hash key
47
47
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
48
48
 
49
- if attributes.has_key?(:'end_date')
50
- self.end_date = attributes[:'end_date']
51
- end
52
-
53
49
  if attributes.has_key?(:'school')
54
50
  self.school = attributes[:'school']
55
51
  end
@@ -57,6 +53,10 @@ module Clever
57
53
  if attributes.has_key?(:'start_date')
58
54
  self.start_date = attributes[:'start_date']
59
55
  end
56
+
57
+ if attributes.has_key?(:'end_date')
58
+ self.end_date = attributes[:'end_date']
59
+ end
60
60
  end
61
61
 
62
62
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -77,9 +77,9 @@ module Clever
77
77
  def ==(o)
78
78
  return true if self.equal?(o)
79
79
  self.class == o.class &&
80
- end_date == o.end_date &&
81
80
  school == o.school &&
82
- start_date == o.start_date
81
+ start_date == o.start_date &&
82
+ end_date == o.end_date
83
83
  end
84
84
 
85
85
  # @see the `==` method
@@ -91,7 +91,7 @@ module Clever
91
91
  # Calculates hash code according to all attributes.
92
92
  # @return [Fixnum] Hash code
93
93
  def hash
94
- [end_date, school, start_date].hash
94
+ [school, start_date, end_date].hash
95
95
  end
96
96
 
97
97
  # Builds the object from hash
@@ -1,12 +1,12 @@
1
1
  =begin
2
- #Clever API
2
+ #Data API
3
3
 
4
- #The Clever API
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.18
9
+ Swagger Codegen version: 2.4.37
10
10
 
11
11
  =end
12
12
 
@@ -1,12 +1,12 @@
1
1
  =begin
2
- #Clever API
2
+ #Data API
3
3
 
4
- #The Clever API
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.18
9
+ Swagger Codegen version: 2.4.37
10
10
 
11
11
  =end
12
12
 
@@ -1,12 +1,12 @@
1
1
  =begin
2
- #Clever API
2
+ #Data API
3
3
 
4
- #The Clever API
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.18
9
+ Swagger Codegen version: 2.4.37
10
10
 
11
11
  =end
12
12