Skip to content

Commit

Permalink
fixed: readme (#33)
Browse files Browse the repository at this point in the history
* fixed: readme

* cleanup
  • Loading branch information
matass authored Dec 21, 2018
1 parent 3b2ac50 commit 4d5b5a3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,14 @@ BusinessPeriod::Config.work_days = -> { work_days }
## Usage

```ruby
# set period
period = { 2, 4 }
from = 2
to = 4

# You can pass optional parameters if You want to set primary day as starting point.
# period = { 2, 4, { primary_day: Time.now - (3600 * 24) } }
# options = { primary_day: Time.now - (3600 * 24) }

# Call BusinessPeriod::Days class to calculate period
BusinessPeriod::Days.call(period)
BusinessPeriod::Days.call(from, to, options)
```

## Examples
Expand Down

0 comments on commit 4d5b5a3

Please sign in to comment.