From 4d5b5a3bbedc57ec298c586d8871a35092269e11 Mon Sep 17 00:00:00 2001 From: Matas Date: Fri, 21 Dec 2018 14:31:12 +0200 Subject: [PATCH] fixed: readme (#33) * fixed: readme * cleanup --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index a8c4e30..4f69d02 100644 --- a/README.md +++ b/README.md @@ -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