Sha256: 63a8658c68383233a92417d300442bcb7880104b6c5de46b3874e070a9c58f97
Contents?: true
Size: 492 Bytes
Versions: 15
Compression:
Stored size: 492 Bytes
Contents
# frozen_string_literal: true require_dependency "renalware/pathology" module Renalware module Pathology # Responsible for finding the most recent observations results with in # the specified date range. # class ObservationsWithinDateRangeQuery def initialize(date_range:, relation: Observation.all) @relation = relation @date_range = date_range end def call @relation.where(observed_at: @date_range) end end end end
Version data entries
15 entries across 15 versions & 1 rubygems