Skip to content

Commit

Permalink
[patch:lib] Update Arx() to match new Arx.search signature (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
eonu authored Apr 16, 2021
1 parent 1bcf5d2 commit 4378469
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/arx.rb
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ def search(*ids, query: nil, sort_by: :relevance, sort_order: :descending, start
# @param query [Query, NilClass] Predefined search query object.
# @param sort_by [Symbol] The sorting criteria for the returned results (see {Arx::Query::SORT_BY}).
# @param sort_order [Symbol] The sorting order for the returned results (see {Arx::Query::SORT_ORDER}).
# @param start [Integer] The index of the first returned result.
# @param max_results [Integer] The number of results returned by the query
# @return [Array<Paper>, Paper] The {Arx::Paper}(s) found by the search query.
def Arx(*ids, query: nil, sort_by: :relevance, sort_order: :descending, &block)
Arx.search *ids, query: query, sort_by: sort_by, sort_order: sort_order, &block
def Arx(*ids, query: nil, sort_by: :relevance, sort_order: :descending, start: 0, max_results: 10, &block)
Arx.search *ids, query: query, sort_by: sort_by, sort_order: sort_order, start: start, max_results: max_results, &block
end

0 comments on commit 4378469

Please sign in to comment.