Sha256: dd739be0659555af39af0228ef34a106c65456a1e22fca7f5205647b5a5e6ffb

Contents?: true

Size: 629 Bytes

Versions: 19

Compression:

Stored size: 629 Bytes

Contents

# frozen_string_literal: true

module Meibo
  class AcademicSessionSet < DataSet
    def check_semantically_consistent
      super

      each do |academic_session|
        next unless academic_session.parent_sourced_id

        find(academic_session.parent_sourced_id)
      end
    end

    def grading_period
      @cache[:grading_period] ||= new(select(&:grading_period?))
    end

    def semester
      @cache[:semester] ||= new(select(&:semester?))
    end

    def school_year
      @cache[:school_year] ||= new(select(&:school_year?))
    end

    def term
      @cache[:term] ||= new(select(&:term?))
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
meibo-0.27.1 lib/meibo/academic_session_set.rb
meibo-0.27.0 lib/meibo/academic_session_set.rb
meibo-0.26.0 lib/meibo/academic_session_set.rb
meibo-0.25.3 lib/meibo/academic_session_set.rb
meibo-0.25.2 lib/meibo/academic_session_set.rb
meibo-0.25.1 lib/meibo/academic_session_set.rb
meibo-0.25.0 lib/meibo/academic_session_set.rb
meibo-0.24.0 lib/meibo/academic_session_set.rb
meibo-0.23.0 lib/meibo/academic_session_set.rb
meibo-0.22.0 lib/meibo/academic_session_set.rb
meibo-0.21.0 lib/meibo/academic_session_set.rb
meibo-0.20.0 lib/meibo/academic_session_set.rb
meibo-0.19.0 lib/meibo/academic_session_set.rb
meibo-0.18.0 lib/meibo/academic_session_set.rb
meibo-0.17.0 lib/meibo/academic_session_set.rb
meibo-0.16.0 lib/meibo/academic_session_set.rb
meibo-0.15.0 lib/meibo/academic_session_set.rb
meibo-0.14.0 lib/meibo/academic_session_set.rb
meibo-0.13.0 lib/meibo/academic_session_set.rb