lib/onyphe/clients/datascan.rb in onyphe-0.2.1 vs lib/onyphe/clients/datascan.rb in onyphe-0.2.2

- old
+ new

@@ -1,10 +1,13 @@ # frozen_string_literal: true +require "addressable/uri" + module Onyphe module Clients class Datascan < Client def get_by_query(query, page = 1) + query = Addressable::URI.encode(query) get("/datascan/#{query}", page: page) { |json| json } end end end end