SIFMaker 0.0.2

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 (54) hide show
  1. data/CHANGELOG +0 -0
  2. data/LICENSE +0 -0
  3. data/README +3 -0
  4. data/lib/sifmaker/us20r1/common/addresslist.rb +53 -0
  5. data/lib/sifmaker/us20r1/common/contactinfo.rb +19 -0
  6. data/lib/sifmaker/us20r1/common/countriesof.rb +17 -0
  7. data/lib/sifmaker/us20r1/common/coursecredits.rb +12 -0
  8. data/lib/sifmaker/us20r1/common/demographics.rb +29 -0
  9. data/lib/sifmaker/us20r1/common/dwellingarrangement.rb +12 -0
  10. data/lib/sifmaker/us20r1/common/earnedstatus.rb +13 -0
  11. data/lib/sifmaker/us20r1/common/electronicidlist.rb +19 -0
  12. data/lib/sifmaker/us20r1/common/emaillist.rb +18 -0
  13. data/lib/sifmaker/us20r1/common/englishproficiency.rb +14 -0
  14. data/lib/sifmaker/us20r1/common/exceptionalitycategories.rb +20 -0
  15. data/lib/sifmaker/us20r1/common/gradelevels.rb +21 -0
  16. data/lib/sifmaker/us20r1/common/identificationinfolist.rb +18 -0
  17. data/lib/sifmaker/us20r1/common/instructionallevel.rb +13 -0
  18. data/lib/sifmaker/us20r1/common/languagelist.rb +23 -0
  19. data/lib/sifmaker/us20r1/common/mealstatus.rb +15 -0
  20. data/lib/sifmaker/us20r1/common/meetingtime.rb +13 -0
  21. data/lib/sifmaker/us20r1/common/name.rb +17 -0
  22. data/lib/sifmaker/us20r1/common/othercodelist.rb +19 -0
  23. data/lib/sifmaker/us20r1/common/otherid.rb +18 -0
  24. data/lib/sifmaker/us20r1/common/othernames.rb +12 -0
  25. data/lib/sifmaker/us20r1/common/phonenumberlist.rb +19 -0
  26. data/lib/sifmaker/us20r1/common/plannedassessmentparticipation.rb +13 -0
  27. data/lib/sifmaker/us20r1/common/program.rb +13 -0
  28. data/lib/sifmaker/us20r1/common/programstatus.rb +13 -0
  29. data/lib/sifmaker/us20r1/common/programtype.rb +13 -0
  30. data/lib/sifmaker/us20r1/common/racelist.rb +20 -0
  31. data/lib/sifmaker/us20r1/common/relationship.rb +13 -0
  32. data/lib/sifmaker/us20r1/common/scedcode.rb +15 -0
  33. data/lib/sifmaker/us20r1/common/schoolcontactlist.rb +19 -0
  34. data/lib/sifmaker/us20r1/common/sif_extendedelements.rb +19 -0
  35. data/lib/sifmaker/us20r1/common/subjectarealist.rb +19 -0
  36. data/lib/sifmaker/us20r1/common/termspan.rb +13 -0
  37. data/lib/sifmaker/us20r1/loader.rb +47 -0
  38. data/lib/sifmaker/us20r1/sis/attendancecodeinfo.rb +24 -0
  39. data/lib/sifmaker/us20r1/sis/blank.rb +19 -0
  40. data/lib/sifmaker/us20r1/sis/calendardate.rb +57 -0
  41. data/lib/sifmaker/us20r1/sis/calendarsummary.rb +30 -0
  42. data/lib/sifmaker/us20r1/sis/leainfo.rb +53 -0
  43. data/lib/sifmaker/us20r1/sis/roominfo.rb +32 -0
  44. data/lib/sifmaker/us20r1/sis/roomtype.rb +18 -0
  45. data/lib/sifmaker/us20r1/sis/schoolcourseinfo.rb +30 -0
  46. data/lib/sifmaker/us20r1/sis/schoolinfo.rb +50 -0
  47. data/lib/sifmaker/us20r1/sis/staffpersonal.rb +27 -0
  48. data/lib/sifmaker/us20r1/sis/studentattendancesummary.rb +29 -0
  49. data/lib/sifmaker/us20r1/sis/studentcontact.rb +42 -0
  50. data/lib/sifmaker/us20r1/sis/studentdailyattendance.rb +23 -0
  51. data/lib/sifmaker/us20r1/sis/studentpersonal.rb +78 -0
  52. data/lib/sifmaker.rb +13 -0
  53. data/test/studentpersonal.test +93 -0
  54. metadata +121 -0
@@ -0,0 +1,47 @@
1
+ require 'sifmaker/us20r1/common/othercodelist'
2
+ require 'sifmaker/us20r1/common/otherid'
3
+ require 'sifmaker/us20r1/common/addresslist'
4
+ require 'sifmaker/us20r1/common/countriesof'
5
+ require 'sifmaker/us20r1/common/coursecredits'
6
+ require 'sifmaker/us20r1/common/dwellingarrangement'
7
+ require 'sifmaker/us20r1/common/earnedstatus'
8
+ require 'sifmaker/us20r1/common/electronicidlist'
9
+ require 'sifmaker/us20r1/common/emaillist'
10
+ require 'sifmaker/us20r1/common/englishproficiency'
11
+ require 'sifmaker/us20r1/common/exceptionalitycategories'
12
+ require 'sifmaker/us20r1/common/gradelevels'
13
+ require 'sifmaker/us20r1/common/identificationinfolist'
14
+ require 'sifmaker/us20r1/common/instructionallevel'
15
+ require 'sifmaker/us20r1/common/languagelist'
16
+ require 'sifmaker/us20r1/common/mealstatus'
17
+ require 'sifmaker/us20r1/common/meetingtime'
18
+ require 'sifmaker/us20r1/common/phonenumberlist'
19
+ require 'sifmaker/us20r1/common/plannedassessmentparticipation'
20
+ require 'sifmaker/us20r1/common/program'
21
+ require 'sifmaker/us20r1/common/programstatus'
22
+ require 'sifmaker/us20r1/common/programtype'
23
+ require 'sifmaker/us20r1/common/racelist'
24
+ require 'sifmaker/us20r1/common/relationship'
25
+ require 'sifmaker/us20r1/common/scedcode'
26
+ require 'sifmaker/us20r1/common/sif_extendedelements'
27
+ require 'sifmaker/us20r1/common/subjectarealist'
28
+ require 'sifmaker/us20r1/common/termspan'
29
+ require 'sifmaker/us20r1/common/name'
30
+ require 'sifmaker/us20r1/common/othernames'
31
+ require 'sifmaker/us20r1/common/demographics'
32
+ require 'sifmaker/us20r1/common/contactinfo'
33
+ require 'sifmaker/us20r1/common/schoolcontactlist'
34
+
35
+ require 'sifmaker/us20r1/sis/attendancecodeinfo'
36
+ require 'sifmaker/us20r1/sis/calendardate'
37
+ require 'sifmaker/us20r1/sis/calendarsummary'
38
+ require 'sifmaker/us20r1/sis/leainfo'
39
+ require 'sifmaker/us20r1/sis/roominfo'
40
+ require 'sifmaker/us20r1/sis/roomtype'
41
+ require 'sifmaker/us20r1/sis/schoolcourseinfo'
42
+ require 'sifmaker/us20r1/sis/staffpersonal'
43
+ require 'sifmaker/us20r1/sis/studentattendancesummary'
44
+ require 'sifmaker/us20r1/sis/studentcontact'
45
+ require 'sifmaker/us20r1/sis/studentdailyattendance'
46
+ require 'sifmaker/us20r1/sis/studentpersonal'
47
+ require 'sifmaker/us20r1/sis/schoolinfo'
@@ -0,0 +1,24 @@
1
+ require 'roxml'
2
+ require 'active_support'
3
+
4
+
5
+ module SIFMaker
6
+ module US20r1
7
+
8
+ class AttendanceCodeInfo
9
+ include ROXML
10
+ xml_name 'AttendanceCodeInfo'
11
+ xml_accessor :refid, :from => "@RefId"
12
+ xml_accessor :schoolinforefid, :from => "@SchoolInfoRefId"
13
+ xml_accessor :attendancecode, :from => 'AttendanceCode'
14
+ xml_accessor :attendancetype, :from => 'AttendanceType'
15
+ xml_accessor :attendancestatus, :from => 'AttendanceStatus'
16
+ xml_accessor :description, :from => 'Description'
17
+ xml_accessor :absencevalue, :from => 'AbsenceValue'
18
+ xml_accessor :usedfordailyattendance, :from => 'UsedForDailyAttendance'
19
+ xml_accessor :usedforperiodattendance, :from => 'UsedForPeriodAttendance'
20
+ xml_accessor :sif_metadata, :from => 'SIF_Metadata'
21
+ xml_accessor :sif_extendedelements, :as => [SIF_ExtendedElements]
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,19 @@
1
+ require 'roxml'
2
+ require 'active_support'
3
+
4
+
5
+ module SIFMaker
6
+ module US20r1
7
+
8
+ class
9
+ include ROXML
10
+ xml_name ''
11
+ xml_accessor :, :from => ''
12
+ xml_accessor :, :from => ''
13
+
14
+
15
+ xml_accessor :sif_metadata, :from => 'SIF_Metadata'
16
+ xml_accessor :sif_extendedelements, :as => [SIF_ExtendedElements]
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,57 @@
1
+ require 'roxml'
2
+ require 'active_support'
3
+
4
+
5
+ module SIFMaker
6
+ module US20r1
7
+
8
+ class CalendarDateType
9
+ include ROXML
10
+ xml_name 'CalendarDateType'
11
+ xml_accessor :code, :from => 'Code'
12
+ xml_accessor :othercodelist, :as => [OtherCodeList]
13
+ end
14
+
15
+ class StudentAttendance
16
+ include ROXML
17
+ xml_name 'StudentAttendance'
18
+ xml_accessor :countstowardattendance, :from => 'CountsTowardAttendance'
19
+ xml_accessor :attendancevalue, :from => 'AttendanceValue'
20
+ xml_accessor :othercodelist, :as => [OtherCodeList]
21
+ end
22
+
23
+ class TeacherAttendance
24
+ include ROXML
25
+ xml_name 'TeacherAttendance'
26
+ xml_accessor :countstowardattendance, :from => 'CountsTowardAttendance'
27
+ xml_accessor :attendancevalue, :from => 'AttendanceValue'
28
+ xml_accessor :othercodelist, :as => [OtherCodeList]
29
+ end
30
+
31
+ class AdministratorAttendance
32
+ include ROXML
33
+ xml_name 'AdministratorAttendance'
34
+ xml_accessor :countstowardattendance, :from => 'CountsTowardAttendance'
35
+ xml_accessor :attendancevalue, :from => 'AttendanceValue'
36
+ xml_accessor :othercodelist, :as => [OtherCodeList]
37
+ end
38
+
39
+ class CalendarDate
40
+ include ROXML
41
+ xml_name 'CalendarDate'
42
+ xml_accessor :date, :from => '@Date'
43
+ xml_accessor :calendarsummaryrefid, :from => '@CalendarSummaryRefId'
44
+ xml_accessor :schoolinforefid, :from => '@SchoolInfoRefId'
45
+ xml_accessor :SchoolYear, :from => '@SchoolYear'
46
+ xml_accessor :calendardatetype, :as => [CalendarDateType]
47
+ xml_accessor :calendardatenumber, :from => 'CalendarDateNumber'
48
+ xml_accessor :studentattendance, :as => [StudentAttendance]
49
+ xml_accessor :teacherattendance, :as => [TeacherAttendance]
50
+ xml_accessor :administratorattendance, :as => [AdministratorAttendance]
51
+ xml_accessor :sif_metadata, :from => 'SIF_Metadata'
52
+ xml_accessor :sif_extendedelements, :as => [SIF_ExtendedElements]
53
+
54
+ end
55
+
56
+ end
57
+ end
@@ -0,0 +1,30 @@
1
+ require 'roxml'
2
+ require 'active_support'
3
+
4
+
5
+ module SIFMaker
6
+ module US20r1
7
+
8
+ class CalendarSummary
9
+ include ROXML
10
+ xml_name 'CalendarSummary'
11
+ xml_accessor :refid, :from => '@RefId'
12
+ xml_accessor :schoolinforefid, :from => '@SchoolInfoRefId'
13
+ xml_accessor :SchoolYear, :from => '@SchoolYear'
14
+ xml_accessor :localid, :from => 'LocalId'
15
+ xml_accessor :description, :from => 'Description'
16
+ xml_accessor :daysinsession, :from => 'DaysInSession'
17
+ xml_accessor :startdate, :from => 'StartDate'
18
+ xml_accessor :enddate, :from => 'EndDate'
19
+ xml_accessor :firstinstructiondate, :from => 'FirstInstructionDate'
20
+ xml_accessor :lastinstructiondate, :from => 'LastInstructionDate'
21
+ xml_accessor :graduationdate, :from => 'GraduationDate'
22
+ xml_accessor :instructionalminutes, :from => 'InstructionalMinutes'
23
+ xml_accessor :minutesperday, :from => 'MinutesPerDay'
24
+ xml_accessor :gradelevels, :as => [GradeLevels]
25
+ xml_accessor :sif_metadata, :from => 'SIF_Metadata'
26
+ xml_accessor :sif_extenedelements, :as => [SIF_ExtendedElements]
27
+
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,53 @@
1
+ require 'roxml'
2
+ require 'active_support'
3
+
4
+
5
+ module SIFMaker
6
+ module US20r1
7
+
8
+ class EducationAgencyType
9
+ include ROXML
10
+ xml_name 'EducationAgencyType'
11
+ xml_accessor :code, :from => 'Code'
12
+ xml_accessor :othercodelist, :as => [OtherCodeList]
13
+ end
14
+
15
+ class LEAContact
16
+ include ROXML
17
+ xml_name 'LEAContact'
18
+ xml_accessor :name, :as=>[Name]
19
+ xml_accessor :positiontitle, :from => 'PostionTitle'
20
+ xml_accessor :role, :from => 'Role'
21
+ xml_accessor :address, :as=>[Address]
22
+ xml_accessor :emaillist, :as=>[EmailList]
23
+ xml_accessor :phonenumberlist, :as=>[PhoneNumberList]
24
+ end
25
+
26
+ class LEAContactList
27
+ include ROXML
28
+ xml_name 'LEAContactList'
29
+ xml_accessor :leacontact, :as => [LEAContactList]
30
+ end
31
+
32
+ class LEAInfo
33
+ include ROXML
34
+ xml_name 'LEAInfo'
35
+ xml_accessor :refid, :from => '@RefId'
36
+ xml_accessor :localid, :from => 'LocalId'
37
+ xml_accessor :stateprovinceid, :from => 'ProvinceId'
38
+ xml_accessor :ncesid, :from => 'NCESId'
39
+ xml_accessor :leaname, :from => 'LEAName'
40
+ xml_accessor :leaurl, :from => 'LEAURL'
41
+ xml_accessor :educationagencytype, :as => [EducationAgencyType]
42
+ xml_accessor :leacontactlist, :as => [LEAContactList]
43
+ xml_accessor :phonenumberlist, :as => [PhoneNumberList]
44
+ xml_accessor :addresslist, :as => [AddressList]
45
+ xml_accessor :identificationinfolist, :as => [IdentificationInfoList]
46
+ xml_accessor :gradelevels, :as => [GradeLevels]
47
+ xml_accessor :operationalstatus, :from => 'OperationalStatus'
48
+ xml_accessor :congressionaldistrict, :from => 'CongressionalDistrict'
49
+ xml_accessor :sif_metadata, :from => 'SIF_Metadata'
50
+ xml_accessor :sif_extendedelements, :from => 'SIF_ExtendedElements'
51
+ end
52
+ end
53
+ end
@@ -0,0 +1,32 @@
1
+ require 'roxml'
2
+ require 'active_support'
3
+
4
+
5
+ module SIFMaker
6
+ module US20r1
7
+
8
+ class StaffPersonalRefId
9
+ include ROXML
10
+ xml_name 'StaffPersonalRefId'
11
+ xml_accessor :staffpersonalrefid, :from => 'StaffPersonalRefId'
12
+ end
13
+
14
+ class RoomInfo
15
+ include ROXML
16
+ xml_name 'RoomInfo'
17
+ xml_accessor :refid, :from => '@RefId'
18
+ xml_accessor :schoolinforefid, :from => '@SchoolInfoRefId'
19
+ xml_accessor :roomnumber, :from => 'RoomNumber'
20
+ xml_accessor :stafflist, :as => [StaffPersonalRefId]
21
+ xml_accessor :description, :from => 'Description'
22
+ xml_accessor :building, :from => 'Building'
23
+ xml_accessor :homeroomnumber, :from => 'HomeroomNumber'
24
+ xml_accessor :size, :from => 'Size'
25
+ xml_accessor :capacity, :from => 'Capacity'
26
+ xml_accessor :phonenumber, :as => [PhoneNumber]
27
+ xml_accessor :roomtyperefid, :from => 'RoomTypeRefId'
28
+ xml_accessor :sif_metadata, :from => 'SIF_Metadata'
29
+ xml_accessor :sif_extendedelements, :as => [SIF_ExtendedElements]
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,18 @@
1
+ require 'roxml'
2
+ require 'active_support'
3
+
4
+
5
+ module SIFMaker
6
+ module US20r1
7
+
8
+ class RoomType
9
+ include ROXML
10
+ xml_name 'RoomType'
11
+ xml_accessor :refid, :from => '@RefId'
12
+ xml_accessor :schoolinforefid, :from => '@SchoolInfoRefId'
13
+ xml_accessor :description, :from => 'Description'
14
+ xml_accessor :sif_metadata, :from => 'SIF_Metadata'
15
+ xml_accessor :sif_extendedelements, :as => [SIF_ExtendedElements]
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,30 @@
1
+ require 'roxml'
2
+
3
+ module SIFMaker
4
+ module US20r1
5
+
6
+ class SchoolCourseInfo
7
+ include ROXML
8
+
9
+ xml_name 'SchoolCourseInfo'
10
+ xml_accessor :refid, :from => '@RefId'
11
+ xml_accessor :schoolinforefid, :from => '@SchoolInfoRefId'
12
+ xml_accessor :schoolyear, :from => '@SchoolYear'
13
+ xml_accessor :coursecode, :from => 'CourseCode'
14
+ xml_accessor :statecoursecode, :from => 'StateCourseCode'
15
+ xml_accessor :districtcoursecode, :from => 'DistrictCourseCode'
16
+ xml_accessor :subjectarealist, :as => [SubjectAreaList]
17
+ xml_accessor :coursetitle, :from => 'CourseTitle'
18
+ xml_accessor :description, :from => 'Description'
19
+ xml_accessor :instructionallevel, :from => 'InstructionalLevel'
20
+ xml_accessor :coursecredits, :from => 'CourseCredits'
21
+ xml_accessor :coreacademiccourse, :from => 'CoreAcademicCourse'
22
+ xml_accessor :graduationrequirement, :from => 'GraduationRequirement'
23
+ xml_accessor :department, :from => 'Department'
24
+ xml_accessor :scedcode, :as => [SCEDCode]
25
+ xml_accessor :sif_metadata, :from => 'SIF_Metadata'
26
+ xml_accessor :sif_extendedelements, :from => 'SIF_ExtendedElements'
27
+ end
28
+
29
+ end
30
+ end
@@ -0,0 +1,50 @@
1
+ require 'roxml'
2
+
3
+ module SIFMaker
4
+ module US20r1
5
+
6
+ class SchoolFocus
7
+ include ROXML
8
+ xml_name 'SchoolInfo'
9
+ xml_accessor :content, :from => 'SchoolFocus'
10
+ end
11
+
12
+ class SchoolFocusList
13
+ include ROXML
14
+ xml_name 'SchoolFocusList'
15
+ xml_accessor :schoolfocus, :as => [SchoolFocus]
16
+ end
17
+
18
+ class OtherLEA
19
+ include ROXML
20
+ xml_name 'OtherLEA'
21
+ xml_accessor :sif_refobject, :from => '@SIF_RefObject'
22
+ end
23
+
24
+ class SchoolInfo
25
+ include ROXML
26
+ xml_name 'SchoolInfo'
27
+ xml_accessor :refid, :from => '@RefId'
28
+ xml_accessor :localid, :from => 'LocalId'
29
+ xml_accessor :stateprovinceid, :from => 'ProvinceId'
30
+ xml_accessor :ncesid, :from => 'NCESId'
31
+ xml_accessor :schoolname, :from => 'SchoolName'
32
+ xml_accessor :leainforefid, :from => 'LEAInfoRefId'
33
+ xml_accessor :otherlea, :as => OtherLEA
34
+ xml_accessor :schooltype, :from => 'SchoolType'
35
+ xml_accessor :schoolfocuslist, :as => SchoolFocusList
36
+ xml_accessor :schoolurl, :from => 'SchoolURL'
37
+ xml_accessor :schoolcontactlist, :as => [SchoolContactList]
38
+ xml_accessor :addresslist, :as => AddressList
39
+ xml_accessor :phonenumberlist, :as => [PhoneNumberList]
40
+ xml_accessor :identificationinfolist, :as => [IdentificationInfoList]
41
+ xml_accessor :sessiontype, :from => 'SessionType'
42
+ xml_accessor :gradelevels, :as => GradeLevels
43
+ xml_accessor :title1status, :from => 'Title1Status'
44
+ xml_accessor :operationalstatus, :from => 'OperationalStatus'
45
+ xml_accessor :congressionaldistrict, :from => 'CongressionalDistrict'
46
+ xml_accessor :sif_metadata, :from => 'SIF_Metadata'
47
+ xml_accessor :sif_extendedelements, :as => [SIF_ExtendedElements]
48
+ end
49
+ end
50
+ end
@@ -0,0 +1,27 @@
1
+ require 'roxml'
2
+ require 'active_support'
3
+
4
+
5
+ module SIFMaker
6
+ module US20r1
7
+
8
+ class StaffPersonal
9
+ include ROXML
10
+ xml_name 'StaffPersonal'
11
+ xml_accessor :refid, :from => '@RefId'
12
+ xml_accessor :localid, :from => 'LocalId'
13
+ xml_accessor :stateprovinceid, :from => 'StateProvinceId'
14
+ xml_accessor :electronicidlist, :as => [ElectronicIdList]
15
+ xml_accessor :otheridlist, :as => [OtherIdList]
16
+ xml_accessor :name, :as => [Name]
17
+ xml_accessor :othernames, :as => [OtherNames]
18
+ xml_accessor :demographics, :as => [Demographics]
19
+ xml_accessor :addresslist, :as => [AddressList]
20
+ xml_accessor :phonenumberlist, :as => [PhoneNumberList]
21
+ xml_accessor :emaillist, :as => [EmailList]
22
+ xml_accessor :employeepersonalrefid, :from => 'EmployeePersonalRefId'
23
+ xml_accessor :sif_metadata, :from => 'SIF_Metadata'
24
+ xml_accessor :sif_extendedelements, :as => [SIF_ExtendedElements]
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,29 @@
1
+ require 'roxml'
2
+ require 'active_support'
3
+
4
+
5
+ module SIFMaker
6
+ module US20r1
7
+
8
+ class StudentAttendanceSummary
9
+ include ROXML
10
+ xml_name 'StudentAttendanceSummary'
11
+ xml_accessor :studentpersonalrefid, :from => '@StudentPersonalRefId'
12
+ xml_accessor :schoolinforefid, :from => '@SchoolInfoRefId'
13
+ xml_accessor :schoolyear, :from => '@SchoolYear'
14
+ xml_accessor :startdate, :from => 'StartDate'
15
+ xml_accessor :startday, :from => 'StartDay'
16
+ xml_accessor :enddate, :from => 'EndDate'
17
+ xml_accessor :endday, :from => 'EndDay'
18
+ xml_accessor :resident, :from => 'Resident'
19
+ xml_accessor :fte, :from => 'FTE'
20
+ xml_accessor :daysattended, :from => 'DaysAttended'
21
+ xml_accessor :excusedabsences, :from => 'ExcusedAbsences'
22
+ xml_accessor :unexcusedabsences, :from => 'UnexcusedAbsences'
23
+ xml_accessor :daystardy, :from => 'DaysTardy'
24
+ xml_accessor :daysinmembership, :from => 'DaysInMembership'
25
+ xml_accessor :sif_metadata, :from => 'SIF_Metadata'
26
+ xml_accessor :sif_extendedelements, :as => [SIF_ExtendedElements]
27
+ end
28
+ end
29
+ end
@@ -0,0 +1,42 @@
1
+ require 'roxml'
2
+ require 'active_support'
3
+
4
+
5
+ module SIFMaker
6
+ module US20r1
7
+
8
+ class ContactFlags
9
+ include ROXML
10
+ xml_name 'ContactFlags'
11
+ xml_accessor :parentlegalguardian, :from => 'ParentLegalGuardian'
12
+ xml_accessor :pickuprights, :from => 'PickupRights'
13
+ xml_accessor :liveswith, :from => 'LivesWith'
14
+ xml_accessor :accesstorecords, :from => 'AccessToRecords'
15
+ xml_accessor :emergencycontact, :from => 'EmergencyContact'
16
+ xml_accessor :hascustody, :from => 'HasCustody'
17
+ xml_accessor :disciplinarycontact, :from => 'DisciplinaryContact'
18
+ xml_accessor :primarycareprovider, :from => 'PrimaryCareProvider'
19
+ end
20
+
21
+ class StudentContact
22
+ include ROXML
23
+ xml_name 'StudentContact'
24
+ xml_accessor :refid, :from => '@RefId'
25
+ xml_accessor :studentpersonalrefid, :from => '@StudentPersonalRefId'
26
+ xml_accessor :localid, :from => 'LocalId'
27
+ xml_accessor :otheridlist, :as => [OtherIdList]
28
+ xml_accessor :name, :as => [Name]
29
+ xml_accessor :othernames, :as => [OtherNames]
30
+ xml_accessor :demographics, :as => [Demographics]
31
+ xml_accessor :addresslist, :as => [AddressList]
32
+ xml_accessor :phonenumberlist, :as => [PhoneNumberList]
33
+ xml_accessor :emailist, :as => [EmailList]
34
+ xml_accessor :relationship, :as => [Relationship]
35
+ xml_accessor :employertype, :from => 'EmployerType'
36
+ xml_accessor :contactflags, :as => [ContactFlags]
37
+ xml_accessor :contactsequence, :from => 'ContactSequence'
38
+ xml_accessor :sif_metadata, :from => 'SIF_Metadata'
39
+ xml_accessor :sif_extendedelements, :as => [SIF_ExtendedElements]
40
+ end
41
+ end
42
+ end
@@ -0,0 +1,23 @@
1
+ require 'roxml'
2
+ require 'active_support'
3
+
4
+
5
+ module SIFMaker
6
+ module US20r1
7
+
8
+ class StudentDailyAttendance
9
+ include ROXML
10
+ xml_name 'StudentDailyAttendance'
11
+ xml_accessor :studentpersonalrefid, :from => '@StudentPersonalRefId'
12
+ xml_accessor :schoolinforefid, :from => '@SchoolInfoRefId'
13
+ xml_accessor :date, :from => '@Date'
14
+ xml_accessor :schoolyear, :from => '@SchoolYear'
15
+ xml_accessor :attendancecodeinforefid, :from => 'AttendanceCodeInfoRefId'
16
+ xml_accessor :timein, :from => 'TimeIn'
17
+ xml_accessor :timeout, :from => 'TimeOut'
18
+ xml_accessor :attendancenote, :from => 'AttendanceNote'
19
+ xml_accessor :sif_metadata, :from => 'SIF_Metadata'
20
+ xml_accessor :sif_extendedelements, :as => [SIF_ExtendedElements]
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,78 @@
1
+ require 'roxml'
2
+ require 'active_support'
3
+
4
+
5
+ module SIFMaker
6
+ module US20r1
7
+
8
+ class AlertMessage
9
+ include ROXML
10
+ xml_name 'AlertMessage'
11
+ xml_accessor :type, :from => '@Type'
12
+ xml_accessor :alertmessage, :from => :content
13
+ end
14
+
15
+ class AlertMessages
16
+ include ROXML
17
+ xml_name 'AlertMessages '
18
+ xml_accessor :alertmessage, :as => [AlertMessage]
19
+ end
20
+
21
+ class MedicalAlertMessage
22
+ include ROXML
23
+ xml_name 'MedicalAlertMessage'
24
+ xml_accessor :type, :from => '@Severity'
25
+ xml_accessor :alertmessage, :from => :content
26
+ end
27
+
28
+ class MedicalAlertMessages
29
+ include ROXML
30
+ xml_name 'MedicalAlertMessages '
31
+ xml_accessor :medicalalertmessage, :as => [MedicalAlertMessage]
32
+ end
33
+
34
+ class MostRecent
35
+ include ROXML
36
+ xml_name 'MostRecent'
37
+ xml_accessor :schoollocalid, :from => 'SchoolLocalId'
38
+ xml_accessor :homeroomlocalid, :from => 'HomeRoomLocalId'
39
+ xml_accessor :gradelevel, :from => 'GradeLevel'
40
+ end
41
+
42
+ class StudentPersonal
43
+ include ROXML
44
+ xml_name 'StudentPersonal'
45
+ xml_accessor :refid, :from => '@RefId'
46
+ xml_accessor :alertmessages, :as => [AlertMessages]
47
+ xml_accessor :medicalalertmessages, :as => [MedicalAlertMessages]
48
+ xml_accessor :localid, :from => 'LocalId'
49
+ xml_accessor :stateprovinceid, :from => 'StateProvinceId'
50
+ xml_accessor :electronicidlist, :as => [ElectronicIdList]
51
+ xml_accessor :otheridlist, :as => [OtherIdList]
52
+ xml_accessor :name, :as => [Name]
53
+ xml_accessor :othernames, :as => [OtherNames]
54
+ xml_accessor :demographics, :as => [Demographics]
55
+ xml_accessor :addresslist, :as => [AddressList]
56
+ xml_accessor :phonenumberlist, :as => [PhoneNumberList]
57
+ xml_accessor :emaillist, :as => [EmailList]
58
+ xml_accessor :projectedgraduationyear, :from => 'ProjectGraduationYears'
59
+ xml_accessor :ontimegraduationyear, :from => 'OnTimeGraduationYear'
60
+ xml_accessor :graduationdate, :from => 'GraduationDate'
61
+ xml_accessor :mostrecent, :as => [MostRecent]
62
+ xml_accessor :acceptableusepolicy, :from => 'AcceptableUsePolicy'
63
+ xml_accessor :idea, :from => 'IDEA'
64
+ xml_accessor :migrant, :from => 'Migrant'
65
+ xml_accessor :title1, :from => 'Title1'
66
+ xml_accessor :giftedtalented, :from => 'GiftedTalented'
67
+ xml_accessor :econonmicdisadvantaged, :from => 'EconomicDisadvantage'
68
+ xml_accessor :ell, :from => 'ELL'
69
+ xml_accessor :homeless, :from => 'Homeless'
70
+ xml_accessor :section504, :from => 'Section504'
71
+ xml_accessor :vocationconcentrator, :from => 'VocationConcentrator'
72
+ xml_accessor :immigrant, :from => 'Immigrant'
73
+ xml_accessor :neglecteddelinquent, :from => 'NeglectedDelinquent'
74
+ xml_accessor :sif_metadata, :from => 'SIF_Metadata'
75
+ xml_accessor :sif_extendedelements, :as => [SIF_ExtendedElements]
76
+ end
77
+ end
78
+ end
data/lib/sifmaker.rb ADDED
@@ -0,0 +1,13 @@
1
+ require 'acdc'
2
+ require 'builder'
3
+ require 'hpricot'
4
+
5
+
6
+ module SIFMaker
7
+
8
+ CO = 'US'
9
+ SPEC = '20r1'
10
+
11
+ end
12
+
13
+ require 'sifmaker/us20r1/loader'