Class: FacultySemesterQuery

Inherits:
Object
  • Object
show all
Defined in:
lib/sirius/faculty_semester_query.rb

Instance Method Summary collapse

Instance Method Details

#apply(resource, faculty_semester:, **rest) ⇒ Object


3
4
5
6
# File 'lib/sirius/faculty_semester_query.rb', line 3

def apply(resource, faculty_semester:, **rest)
  query = "course.faculty==#{faculty_semester.faculty};semester==#{faculty_semester.code}"
  resource.where(query)
end