lib/parse/query.rb in parse-ruby-client-0.1.5 vs lib/parse/query.rb in parse-ruby-client-0.1.6

- old
+ new

@@ -83,9 +83,20 @@ def in_query(field, query) query_hash = {Parse::Protocol::KEY_CLASS_NAME => query.class_name, "where" => query.where} add_constraint(field, "$inQuery" => query_hash) self end + + def limit(num) + @limit = num + self + end + + def order(field, order = :ascending) + @order_by = field + @order = order + self + end def count @count = true self end \ No newline at end of file