Sha256: d82d590f13fa1ce8461ce1f3bc304d8fb11330c97884283ead9ea8eafb19c820
Contents?: true
Size: 472 Bytes
Versions: 51
Compression:
Stored size: 472 Bytes
Contents
# frozen_string_literal: true module Renalware module Letters module Descriptions class SearchQuery attr_reader :term, :page, :per_page def initialize(term) @search_params = { text_cont: term } @search_params.reverse_merge!(s: "text asc") end def call search.result end def search @search ||= Description.search(@search_params) end end end end end
Version data entries
51 entries across 51 versions & 1 rubygems