Class: LoadParallels

Inherits:
Object
  • Object
show all
Includes:
Interpipe::Interactor
Defined in:
app/interactors/load_parallels.rb

Instance Method Summary collapse

Methods included from Interpipe::Interactor

included, #initialize, #setup

Instance Method Details

#perform(faculty_semester:, **options) ⇒ Object


7
8
9
# File 'app/interactors/load_parallels.rb', line 7

def perform(faculty_semester:, **options)
  @results = { parallels: Parallel.where(faculty: faculty_semester.faculty, semester: faculty_semester.code).all, faculty_semester: faculty_semester }
end