Sha256: 27099de51818ab5977f466db4b5bffda03f85bc33bb43a56f048342247d4fa60
Contents?: true
Size: 751 Bytes
Versions: 194
Compression:
Stored size: 751 Bytes
Contents
# frozen_string_literal: true module Motor module ApiQuery module_function def call(rel, params) rel = ApiQuery::Sort.call(rel, params[:sort] || params[:order]) rel = ApiQuery::Paginate.call(rel, params[:page]) rel = ApiQuery::Filter.call(rel, params[:filter] || params[:filters]) rel = ApiQuery::ApplyScope.call(rel, params[:scope]) ApiQuery::Search.call(rel, params[:q] || params[:search] || params[:query]) end end end require_relative './api_query/sort' require_relative './api_query/paginate' require_relative './api_query/filter' require_relative './api_query/search' require_relative './api_query/apply_scope' require_relative './api_query/build_meta' require_relative './api_query/build_json'
Version data entries
194 entries across 194 versions & 6 rubygems