<commit_before>exchange-ruby
=============

[![Gem Version](https://badge.fury.io/rb/openstax_exchange.svg)](http://badge.fury.io/rb/openstax_exchange)
[![Build Status](https://travis-ci.org/openstax/exchange-ruby.svg?branch=master)](https://travis-ci.org/openstax/exchange-ruby)
[![Code Climate](https://codeclimate.com/github/openstax/exchange-ruby.png)](https://codeclimate.com/github/openstax/exchange-ruby)

A ruby client for interfacing with the OpenStax Exchange API.

Usage
-----

```rb
require 'openstax_exchange'
```

```rb
OpenStax::Exchange::Client.configure do |config|
  # ... set config options ...
end
```

```rb
OpenStax::Exchange::Client.use_real_client
OpenStax::Exchange::Client.use_fake_client
```

```rb
OpenStax::Exchange::FakeClient.configure do |config|<commit_msg>updated examples to match removal of ::Client namespace<commit_after>exchange-ruby
=============

[![Gem Version](https://badge.fury.io/rb/openstax_exchange.svg)](http://badge.fury.io/rb/openstax_exchange)
[![Build Status](https://travis-ci.org/openstax/exchange-ruby.svg?branch=master)](https://travis-ci.org/openstax/exchange-ruby)
[![Code Climate](https://codeclimate.com/github/openstax/exchange-ruby.png)](https://codeclimate.com/github/openstax/exchange-ruby)

A ruby client for interfacing with the OpenStax Exchange API.

Usage
-----

```rb
require 'openstax_exchange'
```

```rb
OpenStax::Exchange.configure do |config|
  # ... set config options ...
end
```

```rb
OpenStax::Exchange.use_real_client
OpenStax::Exchange.use_fake_client
```

```rb
OpenStax::Exchange::FakeClient.configure do |config|
{'fraction_non_alphanumeric': 0.19148936170212766, 'fraction_numerical': 0.0, 'mean_word_length': 5.892241379310345, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 10, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2155166', 'n_tokens_mistral': 601, 'n_tokens_neox': 541, 'n_words': 78}