forked from e621ng/e621ng
17 lines
274 B
Ruby
17 lines
274 B
Ruby
# frozen_string_literal: true
|
|
|
|
module DocumentStore
|
|
class SearchRequest
|
|
attr_reader :definition
|
|
|
|
def initialize(definition, client)
|
|
@definition = definition
|
|
@client = client
|
|
end
|
|
|
|
def execute!
|
|
@client.search(@definition)
|
|
end
|
|
end
|
|
end
|