Class: Meibo::JapanProfile::AcademicSession
- Inherits:
-
AcademicSession
- Object
- AcademicSession
- Meibo::JapanProfile::AcademicSession
- Defined in:
- lib/meibo/japan_profile/academic_session.rb
Constant Summary collapse
- TYPES =
{ school_year: "schoolYear" }.freeze
Instance Method Summary collapse
-
#initialize(school_year:, title: "#{school_year}年度", type: TYPES[:school_year], start_date: Date.new(school_year, 4, 1), end_date: Date.new(school_year + 1, 3, 31), **other_fields) ⇒ AcademicSession
constructor
NOTE: 以下固定 - titleは連携処理実行時の対象年度西暦 + 「年度」を設定 - typeはschoolYear固定 - start_dateは対象年度の開始日固定 - end_dateは対象年度の終了日固定.
Methods inherited from AcademicSession
#children, #collection, #grading_period?, #parent, #school_year?, #semester?, #term?
Constructor Details
#initialize(school_year:, title: "#{school_year}年度", type: TYPES[:school_year], start_date: Date.new(school_year, 4, 1), end_date: Date.new(school_year + 1, 3, 31), **other_fields) ⇒ AcademicSession
NOTE: 以下固定
- titleは連携処理実行時の対象年度西暦 + 「年度」を設定
- typeはschoolYear固定
- start_dateは対象年度の開始日固定
- end_dateは対象年度の終了日固定
22 23 24 25 26 |
# File 'lib/meibo/japan_profile/academic_session.rb', line 22 def initialize(school_year:, title: "#{school_year}年度", type: TYPES[:school_year], start_date: Date.new(school_year, 4, 1), end_date: Date.new(school_year + 1, 3, 31), **other_fields) super(school_year: school_year, title: title, type: type, start_date: start_date, end_date: end_date, **other_fields) end |