Sha256: 78f52042b0a5c8b2e5092a9ddb78b6ba82749d3bee9007d3f2ea20e4e1b8630a

Contents?: true

Size: 277 Bytes

Versions: 1

Compression:

Stored size: 277 Bytes

Contents

# frozen_string_literal: true

require "addressable/uri"

module Onyphe
  module Clients
    class Search < Client
      def search(oql, page: 1)
        path = Addressable::URI.encode(oql)
        get("/search/#{path}", page: page) { |json| json }
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
onyphe-2.0.0 lib/onyphe/clients/search.rb