Permalink
Browse files

Add usage to readme

  • Loading branch information...
1 parent b22c910 commit d19b4786130c25681d48e1d38814669753a1ae47 @jnunemaker committed Aug 3, 2012
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

0 comments on commit d19b478

Please sign in to comment.