lib/billomat/search.rb in billomat-0.1.1 vs lib/billomat/search.rb in billomat-0.1.2

- old
+ new

@@ -21,9 +21,10 @@ "#{@resource.base_path}?#{hash_to_query}" end ## # Runs the query and calls the gateway + # Currently it will always return an empty array when no query is provided # # @return [Array<Billomat::Model::Base>] def run return [] if @hash.reject { |k, v| v.nil? }.empty? to_array(Billomat::Gateway.new(:get, path).run)