Skip to content

Commit

Permalink
tweak readme
Browse files Browse the repository at this point in the history
  • Loading branch information
blahed committed Jan 25, 2013
1 parent 2f5e5c9 commit 18af366
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ Von.configure do |config|
# Keep monthly stats for 3 months and yearly stats for 2 years
config.counter 'uploads', :monthly => 3, :yearly => 2
end

```

### Incrementing Time Periods
Expand All @@ -46,6 +45,8 @@ Von.count('downloads', :monthly) #=> [ { '2012-03 => 3}, { '2013-04' => 1 }]

```

One nice thing to note, if you're counting a time period and there wasn't a value stored for the particular time unit, it'll be populated with a zero, this ensures that if you want 30 days of stats, you get 30 days of stats.

## Installation

Add this line to your application's Gemfile:
Expand Down

0 comments on commit 18af366

Please sign in to comment.