README.md in sfkb-0.1.2 vs README.md in sfkb-0.1.3

- old
+ new

@@ -3,11 +3,16 @@ SalesForce Knowledge Base A Ruby library that extends [Restforce][] to provide convenient access to Articles and ArticlesVersions in the Salesforce Knowledge Base. -[![Build Status](https://travis-ci.org/bjjb/sfkb.svg?branch=master)](https://travis-ci.org/bjjb/sfkb) +[![Build Status](http://img.shields.io/travis/bjjb/sfkb.svg?style=flat-square)](https://travis-ci.org/bjjb/sfkb) +[![Test Coverage](https://api.codeclimate.com/v1/badges/8e717aedee6a4e956683/test_coverage)](https://codeclimate.com/github/bjjb/sfkb/test_coverage) +[![Maintainability](https://api.codeclimate.com/v1/badges/8e717aedee6a4e956683/maintainability)](https://codeclimate.com/github/bjjb/sfkb/maintainability) +[![Dependency Status](http://img.shields.io/gemnasium/bjjb/sfkb.svg?style=flat-square)](https://gemnasium.com/bjjb/sfkb) +[![Gem Version](http://img.shields.io/gem/v/sfkb.svg?style=flat-square)](https://rubygems.org/gems/sfkb) +[![License](http://img.shields.io/:license-mit-blue.svg?style=flat-square)](http://bjjb.mit-license.org) ## Requirements - [Ruby][] - [SalesForce][] @@ -30,16 +35,17 @@ instantiating a `SFKB::Client`. For example, here's how to print the titles of the master versions of the first 10 documents: -``` +```ruby require 'sfkb' SFKB.new.articles.take(10).each { |a| puts a.OnlineMasterVersion.data.Title } ``` Here's how to list the titles of every translation of every draft article: -``` + +```ruby sf = SFKB.new sf.articles.select(:hasTranslations?) do |a| sf.translations(a, 'Draft').each do |t| puts t.data.Title end