Permalink
Browse files

fix total counter in readme

  • Loading branch information...
blahed committed Jan 31, 2013
1 parent 9022732 commit 3574053ba5cf48aae3de16253afc2516b3544d9a
Showing with 1 addition and 1 deletion.
  1. +1 −1 README.md
View
@@ -62,7 +62,7 @@ Von.increment('page-views')
```ruby
# get the total downloads (returns an Integer)
-Von.count('downloads') #=> 4
+Von.count('downloads').total #=> 4
# get the monthly counts (returns an Array of Hashes)
Von.count('uploads').per(:month) #=> [ { '2012-03' => 3 }, { '2013-04' => 1 }, { '2013-05' => 0 }]
# get the best day for downloads (returns a Hash)

0 comments on commit 3574053

Please sign in to comment.