Skip to content

Instantly share code, notes, and snippets.

@prismicdeveloper
Created March 31, 2015 09:44
Show Gist options
  • Save prismicdeveloper/4e263ac039e0b0cea0be to your computer and use it in GitHub Desktop.
Save prismicdeveloper/4e263ac039e0b0cea0be to your computer and use it in GitHub Desktop.
# Number predicates
gt = Predicates::gt('my.product.price', 10)
lt = Predicates::lt('my.product.price', 20)
in_range = Predicates::in_range('my.product.price', 10, 20)
# Accessing number fields
price = doc.get_number('product.price').value
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment