lib/waistband/query.rb in waistband-0.7.4 vs lib/waistband/query.rb in waistband-0.8.0
- old
+ new
@@ -44,14 +44,10 @@
@hash
end
def url
- index.search_url
- end
-
- def index
- Waistband::Index.new(@index)
+ @index.search_url
end
def execute!
JSON.parse(RestClient::Request.execute(method: :get, url: url, payload: to_hash.to_json))
end