Sha256: 37cdf775ebe3a7daa46882b8dee09b62d4bf196f4fc2bbe1276cab74d1030c77

Contents?: true

Size: 482 Bytes

Versions: 1

Compression:

Stored size: 482 Bytes

Contents

# frozen_string_literal: true

module OpenFdaApi
  # Group of inputs to build the query against the API with
  class QueryInputs
    attr_reader :search, :sort, :count, :skip, :limit, :api_key

    def initialize(**params)
      @search  = params[:search]  || []
      @sort    = params[:sort]    || []
      @count   = params[:count]   || []
      @skip    = params[:skip]    || 0
      @limit   = params[:limit]   || nil
      @api_key = params[:api_key] || nil
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
open_fda_api-0.0.13 lib/open_fda_api/query_inputs.rb