Skip to content

Commit

Permalink
Add entity Parameter and resource parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
jirutka committed Jan 19, 2018
1 parent c4cbdf5 commit c06526f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/kosapi_client/api_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ class ApiClient
resource :course_events
resource :divisions
resource :parallels
resource :parameters
resource :exams
resource :semesters
resource :teachers
Expand Down
1 change: 1 addition & 0 deletions lib/kosapi_client/entity.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
require 'kosapi_client/entity/teacher_timetable_slot'
require 'kosapi_client/entity/timetable_slot'
require 'kosapi_client/entity/parallel'
require 'kosapi_client/entity/parameter'
require 'kosapi_client/entity/base_person'
require 'kosapi_client/entity/person'
require 'kosapi_client/entity/teacher'
Expand Down
14 changes: 14 additions & 0 deletions lib/kosapi_client/entity/parameter.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
module KOSapiClient
module Entity
class Parameter < BaseEntity

map_data :description, String
map_data :key, String
map_data :value, String
end

# XSI type of the Parameter entity is actually KoSetting (wtf?), thus we
# must define this alias so ResponseConverter can find the entity class.
KoSetting = Parameter
end
end

0 comments on commit c06526f

Please sign in to comment.