README.md in parse-ruby-client-0.1.15 vs README.md in parse-ruby-client-0.2.0

- old
+ new

@@ -24,10 +24,12 @@ [![Gem Version](https://badge.fury.io/rb/parse-ruby-client.png)](http://badge.fury.io/rb/parse-ruby-client) [![Build Status](https://travis-ci.org/adelevie/parse-ruby-client.png?branch=master)](https://travis-ci.org/adelevie/parse-ruby-client) +[![Code Climate](https://codeclimate.com/github/adelevie/parse-ruby-client.png)](https://codeclimate.com/github/adelevie/parse-ruby-client) + **Table of Contents** *generated with [DocToc](http://doctoc.herokuapp.com/)* - [Summary](#summary) - [Quick Reference](#quick-reference) - [Installation](#installation) @@ -271,19 +273,15 @@ ``` Because manually constructing `"path"` values is repetitive, you can use `Parse::Batch#create_object`, `Parse::Batch#update_object`, and `Parse::Batch#delete_object`. Each of these methods takes an instance of `Parse::Object` as the only argument. Then you just call `Parse::Batch#run!`. For example: ```ruby -# making a few GameScore objects -game_scores = [1, 2, 3, 4, 5].map do |i| +batch = Parse::Batch.new +# making a few GameScore objects and adding them to the batch operation. +[1, 2, 3, 4, 5].each do |i| gs = Parse::Object.new("GameScore") gs["score"] = "#{i}" - gs -end - -batch = Parse::Batch.new -game_scores.each do |gs| batch.create_object(gs) end batch.run! ``` @@ -346,10 +344,10 @@ #### Pointers The `Pointer` type is used when mobile code sets a `PFObject` (iOS SDK) or `ParseObject` (Android SDK) as the value of another object. It contains the `className` and `objectId` of the referred-to value. ```ruby -pointer = Parse::Pointer.new({"className => gameScore", "objectId" => "GeqPWJdNqp"}) +pointer = Parse::Pointer.new({"className" => "gameScore", "objectId" => "GeqPWJdNqp"}) ``` Pointers to `user` objects have a `className` of `_User`. Prefixing with an underscore is forbidden for developer-defined classes and signifies the class is a special built-in. If you already have a `Parse::Object`, you can get its `Pointer` very easily: