Sha256: 6018d3c73b9e96f539c14ed73c41cb40895b5f98e832d9e73832175863292a34
Contents?: true
Size: 553 Bytes
Versions: 95
Compression:
Stored size: 553 Bytes
Contents
# frozen_string_literal: true module Blacklight class SuggestSearch attr_reader :request_params, :repository ## # @param [Hash] params # @param [Blacklight::AbstractRepository] repository def initialize(params, repository) @request_params = { q: params[:q] } @repository = repository end ## # For now, only use the q parameter to create a # Blacklight::Suggest::Response # @return [Blacklight::Suggest::Response] def suggestions repository.suggestions(request_params) end end end
Version data entries
95 entries across 94 versions & 2 rubygems