tiny_rl 2.0.0 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tiny_rl.rb +4 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9d9dfba7e07aff49aacdce244cf39bc54f87afb03ab40823ee5e7aa56863f80a
|
4
|
+
data.tar.gz: fb9a2e33e35858d05da57d5976ab2db87644b694c67ca35df8240b959f0e0580
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b823cdb7a65a0e35a15ef298a383346809a4d443b6132b4221f21c025cdfbd797a95982fabe89a3761d8b601d7cdb120f011c38b783ad0cab09b22033fb8a8c
|
7
|
+
data.tar.gz: 80e43f6a8e144cdadf44f3a660960cbb7876c74259d07652dc838de1e8d32ca790684fa8809b1a44b734fa4ac5c69f0bdbaa49dc97acf71121b1ca8a952b152f
|
data/lib/tiny_rl.rb
CHANGED
@@ -32,6 +32,10 @@ class TinyRl
|
|
32
32
|
MONTH = DAY * 30
|
33
33
|
YEAR = DAY * 365
|
34
34
|
|
35
|
+
attr_reader :limit,
|
36
|
+
:per,
|
37
|
+
:strategy
|
38
|
+
|
35
39
|
# rate: number of requests per unit time
|
36
40
|
# per: unit of time (one of SECOND, MINUTE, etc.)
|
37
41
|
# you can pass any integer in as the `per' parameter and it will be
|