Skip to content

Commit

Permalink
Add README Instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyObtiva committed Feb 22, 2017
1 parent fd42811 commit 1836e6e
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,20 @@ people_http_request.to_collection(false).each do |person|
end
```

## Instructions

### Bundler / Rails

`gem 'to_collection', '~> 1.0.0'`

### Plain Ruby

`require 'to_collection'`

### Note

Code above enables `#to_collection` method on all classes inheriting from `Object`. See [options](#options) below in case you prefer to **manually** include in certain classes only.

## Background

I'm sure you've encountered REST Web Service APIs that operate as follows:
Expand Down

0 comments on commit 1836e6e

Please sign in to comment.