Class: RateLimit::Bucket
- Inherits:
-
Struct
- Object
- Struct
- RateLimit::Bucket
- Defined in:
- lib/ratelimit/bucketbased.rb
Overview
-
Returns :
-
a Bucket
-
Instance Attribute Summary collapse
-
#cost ⇒ Object
Returns the value of attribute cost.
-
#current ⇒ Object
Returns the value of attribute current.
-
#last_refill ⇒ Object
Returns the value of attribute last_refill.
-
#max ⇒ Object
Returns the value of attribute max.
-
#min ⇒ Object
Returns the value of attribute min.
-
#name ⇒ Object
Returns the value of attribute name.
-
#refill_amount ⇒ Object
Returns the value of attribute refill_amount.
-
#refill_epoch ⇒ Object
Returns the value of attribute refill_epoch.
-
#total_used ⇒ Object
Returns the value of attribute total_used.
Instance Attribute Details
#cost ⇒ Object
Returns the value of attribute cost
18 19 20 |
# File 'lib/ratelimit/bucketbased.rb', line 18 def cost @cost end |
#current ⇒ Object
Returns the value of attribute current
18 19 20 |
# File 'lib/ratelimit/bucketbased.rb', line 18 def current @current end |
#last_refill ⇒ Object
Returns the value of attribute last_refill
18 19 20 |
# File 'lib/ratelimit/bucketbased.rb', line 18 def last_refill @last_refill end |
#max ⇒ Object
Returns the value of attribute max
18 19 20 |
# File 'lib/ratelimit/bucketbased.rb', line 18 def max @max end |
#min ⇒ Object
Returns the value of attribute min
18 19 20 |
# File 'lib/ratelimit/bucketbased.rb', line 18 def min @min end |
#name ⇒ Object
Returns the value of attribute name
18 19 20 |
# File 'lib/ratelimit/bucketbased.rb', line 18 def name @name end |
#refill_amount ⇒ Object
Returns the value of attribute refill_amount
18 19 20 |
# File 'lib/ratelimit/bucketbased.rb', line 18 def refill_amount @refill_amount end |
#refill_epoch ⇒ Object
Returns the value of attribute refill_epoch
18 19 20 |
# File 'lib/ratelimit/bucketbased.rb', line 18 def refill_epoch @refill_epoch end |
#total_used ⇒ Object
Returns the value of attribute total_used
18 19 20 |
# File 'lib/ratelimit/bucketbased.rb', line 18 def total_used @total_used end |