README.md in mrkt-0.4.0 vs README.md in mrkt-0.5.0

- old
+ new

@@ -1,9 +1,10 @@ # Mrkt [![Build Status](https://secure.travis-ci.org/raszi/mrkt.png)](http://travis-ci.org/raszi/mrkt) -[![Gem Version](https://badge.fury.io/rb/mrkt.png)](http://badge.fury.io/rb/mrkt) +[![Code Climate](https://codeclimate.com/github/raszi/mrkt/badges/gpa.svg)](https://codeclimate.com/github/raszi/mrkt) +[![Test Coverage](https://codeclimate.com/github/raszi/mrkt/badges/coverage.svg)](https://codeclimate.com/github/raszi/mrkt) This gem provides some level of abstraction to Marketo REST APIs. Please note that this gem is alpha quality. ## Installation @@ -51,19 +52,19 @@ ### Get leads matching an email, print their id and email ```ruby response = client.get_leads :email, 'sammy@acme.com' -response.body[:result].each do |result| +response[:result].each do |result| p "id: #{result[:id]}, email: #{result[:email]}" end ``` ### Create/Update leads ```ruby response = client.createupdate_leads([ email: 'sample@example.com', firstName: 'John' ], lookup_field: :email) -response.body[:result].each do |result| +response[:result].each do |result| p "id: #{result[:id]}, email: #{result[:email]}" end ```