Skip to content

Commit c06526f

Browse files
committed
Add entity Parameter and resource parameters
1 parent c4cbdf5 commit c06526f

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

lib/kosapi_client/api_client.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ class ApiClient
1010
resource :course_events
1111
resource :divisions
1212
resource :parallels
13+
resource :parameters
1314
resource :exams
1415
resource :semesters
1516
resource :teachers

lib/kosapi_client/entity.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
require 'kosapi_client/entity/teacher_timetable_slot'
1515
require 'kosapi_client/entity/timetable_slot'
1616
require 'kosapi_client/entity/parallel'
17+
require 'kosapi_client/entity/parameter'
1718
require 'kosapi_client/entity/base_person'
1819
require 'kosapi_client/entity/person'
1920
require 'kosapi_client/entity/teacher'
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
module KOSapiClient
2+
module Entity
3+
class Parameter < BaseEntity
4+
5+
map_data :description, String
6+
map_data :key, String
7+
map_data :value, String
8+
end
9+
10+
# XSI type of the Parameter entity is actually KoSetting (wtf?), thus we
11+
# must define this alias so ResponseConverter can find the entity class.
12+
KoSetting = Parameter
13+
end
14+
end

0 commit comments

Comments
 (0)