adelevie/parse-ruby-client — pull request #143 by chrisb (2014-09-12 21:04:37+00:00)
Title: Convenience Methods

This PR adds a little dash of convenience.

### Batch Update Attributes

```ruby
user = Parse::Query.new('_User').eq('email','joe@example.com')
user.update_attributes email: 'john@example.com', name: 'John Smith' # update multiple attributes at once
```

### Return the First Result

A wrapper for setting `limit` to 1 and calling `#get`.

```ruby
first_user = Parse::Query.new('_User').first
```

### Use a Hash for `eq` Queries

Allows the `#eq` method to accept a hash of key/value pairs to construct an AND query.

```ruby
user = Parse::Query.new('_User').eq email: 'john@example.com', name: 'John Smith'
```