Class: Quby::Answers::Repos::MemoryRepo
- Defined in:
- lib/quby/answers/repos/memory_repo.rb
Defined Under Namespace
Classes: Record
Instance Method Summary collapse
Methods inherited from Base
#all, #create!, #find, #reload, #update!
Instance Method Details
#find_completed_after(time, answer_ids) ⇒ Object
12 13 14 15 16 17 |
# File 'lib/quby/answers/repos/memory_repo.rb', line 12 def find_completed_after(time, answer_ids) records = storage.values.select do |record| answer_ids.include?(record._id) && record.completed_at.present? && record.completed_at > time end records.map { |record| entity(record) } end |