Sha256: 2e5b362c1a7fb96d925111fe95733148ec33adf8d2eaec8fa564d93b4d4c31c6
Contents?: true
Size: 414 Bytes
Versions: 51
Compression:
Stored size: 414 Bytes
Contents
# frozen_string_literal: true module Renalware module HD module Sessions class PatientQuery def initialize(patient:, q: nil) @patient = patient @q = q || { s: "performed_on desc" } end def call search.result end def search @search ||= Session.where(patient: @patient).search(@q) end end end end end
Version data entries
51 entries across 51 versions & 1 rubygems