Class: Sirius::UpdatedParallelsFinder

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

Instance Method Summary collapse

Constructor Details

#initialize(client: nil) ⇒ UpdatedParallelsFinder

Returns a new instance of UpdatedParallelsFinder.


7
8
9
# File 'lib/sirius/updated_parallels_finder.rb', line 7

def initialize(client: nil)
  @forced_client = client
end

Instance Method Details

#find_updated(page_size: 100, faculty: nil, semester: nil) ⇒ Object


11
12
13
14
# File 'lib/sirius/updated_parallels_finder.rb', line 11

def find_updated(page_size: 100, faculty: nil, semester: nil)
  query = build_query(faculty, semester)
  kosapi_client(faculty).parallels.where(query).limit(page_size)
end