README.md in parse-ruby-client-0.1.8 vs README.md in parse-ruby-client-0.1.9
- old
+ new
@@ -17,11 +17,11 @@
# Getting Started
## Installation
-`gem "parse-ruby-client", "~> 0.1.8"`
+`gem "parse-ruby-client", "~> 0.1.9"`
---
To get started, load the parse.rb file and call Parse.init to initialize the client object with
your application ID and API key values, which you can obtain from the parse.com dashboard.
@@ -154,9 +154,27 @@
push = Parse::Push.new({"alert" => "I'm sending this push to all my app users!"})
push.save
```
## Batch Requests
+
+Automagic:
+
+```ruby
+posts = Parse::Query.new("Post").get
+update_batch = Parse::Batch.new
+posts.each_slice(20) do |posts_slice|
+ posts_slice.each do |post|
+ post["title"] = "Updated title!"
+ update_batch.update_object(post)
+ end
+end
+update_batch.run!
+```
+
+`Parse::Batch` also has `#create_object` and `delete_object` methods. Both take instances of `Parse::Object` as the only argument.
+
+Manual:
```ruby
batch = Parse::Batch.new
batch.add_request({
"method" => "POST",