Skip to content

Commit cc082d1

Browse files
committed
Add readme file
1 parent 26a6177 commit cc082d1

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

readme.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Random CSV data generator
2+
3+
This is the attempt to generate random csv data
4+
5+
It creates data for the complete year for past years.
6+
7+
For the current year it generates data until yesterday.
8+
9+
## Usage
10+
11+
`ruby random_csv.rb`
12+
13+
will show the context help which explains the usage
14+
15+
### Parameters
16+
17+
You need to use them in the following order
18+
19+
YEAR, e.g. 2020, default: 2019
20+
REGION, e.g. 'de', 'uk' or 'us', default: 'de'
21+
QUEUE NAME, e.g. Hotline, default: 'Test-Queue'
22+
OPENINGS START time, e.g. 10 default: 8
23+
OPENINGS END time, e.g. 20, default: 18
24+
INTERVAL, e.g. 30, default: 15
25+
26+
### Example
27+
28+
ruby random_csv.rb 2019 'en' 'Hotline' 10 20
29+
30+
### Minimal parameter set
31+
32+
For the current year, German holidays, openings 8 - 18 and 15 minutes intervals
33+
you can use simply
34+
35+
`ruby random_csv.rb 2019`
36+
37+
If you want to output anything else, you need to enter all parameters.
38+
39+
### Generate CSV files
40+
41+
To generate a file use the > operator
42+
43+
`ruby random_csv.rb 2019 'en' 'Hotline' 10 20 > 'output_files/Hotline-2019.csv'`

0 commit comments

Comments
 (0)