<commit_before>[![Build Status](https://travis-ci.org/kkirsche/medium-sdk-ruby.svg)](https://travis-ci.org/kkirsche/medium-sdk-ruby) [![Code Climate](https://codeclimate.com/github/kkirsche/medium-sdk-ruby/badges/gpa.svg)](https://codeclimate.com/github/kkirsche/medium-sdk-ruby) [![Test Coverage](https://codeclimate.com/github/kkirsche/medium-sdk-ruby/badges/coverage.svg)](https://codeclimate.com/github/kkirsche/medium-sdk-ruby/coverage)
[![API Testing](https://img.shields.io/badge/API%20Test-RapidAPI-blue.svg)](https://rapidapi.com/package/Medium/functions?utm_source=MediumGithub&utm_medium=button&utm_content=Vender_GitHub)

# Medium SDK for Ruby

This repository contains the open source SDK for integrating Medium's API into your Ruby app.

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'medium'
```

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install medium-sdk-ruby

## Usage

Create a client, then call commands on it.

```ruby
require 'medium-sdk-ruby'
<commit_msg>Change require<commit_after>[![Build Status](https://travis-ci.org/kkirsche/medium-sdk-ruby.svg)](https://travis-ci.org/kkirsche/medium-sdk-ruby) [![Code Climate](https://codeclimate.com/github/kkirsche/medium-sdk-ruby/badges/gpa.svg)](https://codeclimate.com/github/kkirsche/medium-sdk-ruby) [![Test Coverage](https://codeclimate.com/github/kkirsche/medium-sdk-ruby/badges/coverage.svg)](https://codeclimate.com/github/kkirsche/medium-sdk-ruby/coverage)
[![API Testing](https://img.shields.io/badge/API%20Test-RapidAPI-blue.svg)](https://rapidapi.com/package/Medium/functions?utm_source=MediumGithub&utm_medium=button&utm_content=Vender_GitHub)

# Medium SDK for Ruby

This repository contains the open source SDK for integrating Medium's API into your Ruby app.

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'medium'
```

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install medium-sdk-ruby

## Usage

Create a client, then call commands on it.

```ruby
require 'medium'

{'fraction_non_alphanumeric': 0.1510164569215876, 'fraction_numerical': 0.001936108422071636, 'mean_word_length': 5.263636363636364, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 16, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1385889', 'n_tokens_mistral': 761, 'n_tokens_neox': 693, 'n_words': 125}