Skip to content

Commit

Permalink
Change Exam and CourseEvent name and note type to MLString.
Browse files Browse the repository at this point in the history
  • Loading branch information
tszolar committed Feb 27, 2015
1 parent 56b8736 commit 621ac70
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions lib/kosapi_client/entity/course_event.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ class CourseEvent < BaseEntity
map_data :course, Link
map_data :creator, Link
map_data :end_date, Time
map_data :name
map_data :note
map_data :name, MLString
map_data :note, MLString
map_data :occupied, Integer
map_data :room, Link
map_data :semester, Link
Expand All @@ -17,4 +17,4 @@ class CourseEvent < BaseEntity

end
end
end
end
4 changes: 2 additions & 2 deletions lib/kosapi_client/entity/exam.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Exam < BaseEntity
map_data :department, Link
map_data :end_date, Time
map_data :examiner, Link
map_data :note
map_data :note, MLString
map_data :occupied, Integer
map_data :resit, Boolean
map_data :room, Link
Expand All @@ -21,4 +21,4 @@ class Exam < BaseEntity

end
end
end
end
2 changes: 1 addition & 1 deletion spec/kosapi_client/entity/course_event_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
course: {__content__: 'Computer Structure and Architecture',
xlink_href: 'courses/BI-SAP/'},
end_date: '2010-05-18T14:01:00',
name: {__content__: 'test1 oprava', lang: 'cs'},
name: {__content__: 'test1 oprava', xml_lang: 'cs'},
occupied: '50',
room: {__content__: 'TK:PU1', xlink_href: 'rooms/TK:PU1/'},
semester: {__content__: 'Summer 2009/2010', xlink_href: 'semesters/B092/'},
Expand Down

0 comments on commit 621ac70

Please sign in to comment.