Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add usage to readme

  • Loading branch information...
commit d19b4786130c25681d48e1d38814669753a1ae47 1 parent b22c910
@jnunemaker authored
Showing with 10 additions and 0 deletions.
  1. +10 −0 README.md
View
10 README.md
@@ -16,6 +16,16 @@ Or install it yourself with:
$ gem install flipper-mongo
+## Usage
+
+```ruby
+require 'flipper/adapters/mongo'
+collection = Mongo::Connection.new.db('testing')['flipper']
+adapter = Flipper::Adapters::Mongo.new(collection, 'features')
+flipper = Flipper.new(adapter)
+# profit...
+```
+
## Contributing
1. Fork it
Please sign in to comment.
Something went wrong with that request. Please try again.