README.md in algolia-2.1.1 vs README.md in algolia-2.2.0
- old
+ new
@@ -39,10 +39,10 @@
```ruby
client = Algolia::Search::Client.create('YourApplicationID', 'YourAPIKey')
index = client.init_index('your_index_name')
-index.save_objects([objectID: 1, name: 'Foo'])
+index.save_objects([{objectID: 1, name: 'Foo'}])
```
Finally, you may begin searching a object using the `search` method:
```ruby
objects = index.search('Foo')