duwanis/asari — pull request #14 by kaiuhl (2013-09-06 18:20:36+00:00)
Title: Boolean queries

Howdy Tommy,

This PR allows you to build a Ruby representation of how the boolean queries work on Cloudfront.

@asari.boolean_search { or: { donut: true, and: { round: true, cook_type: "fried", topping: "glaze" } }
#=> Generates a query string of (or donut:'true' (and round:'true' cook_type:'fried' topping:'glaze))

It should work at any depth or level of logic. Yay hurray!

:cake: