Class: Spikard::RateLimitConfig
- Inherits:
-
Object
- Object
- Spikard::RateLimitConfig
- Defined in:
- sig/types.rbs
Instance Attribute Summary collapse
-
#burst ⇒ Integer?
Returns the value of attribute burst.
-
#ip_based ⇒ Boolean?
Returns the value of attribute ip_based.
-
#per_second ⇒ Integer?
Returns the value of attribute per_second.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ RateLimitConfig
constructor
A new instance of RateLimitConfig.
Constructor Details
#initialize ⇒ RateLimitConfig
Returns a new instance of RateLimitConfig.
145 |
# File 'sig/types.rbs', line 145
def initialize: (?per_second: Integer, ?burst: Integer, ?ip_based: bool) -> void
|
Instance Attribute Details
#burst ⇒ Integer?
Returns the value of attribute burst.
142 143 144 |
# File 'sig/types.rbs', line 142 def burst @burst end |
#ip_based ⇒ Boolean?
Returns the value of attribute ip_based.
143 144 145 |
# File 'sig/types.rbs', line 143 def ip_based @ip_based end |
#per_second ⇒ Integer?
Returns the value of attribute per_second.
141 142 143 |
# File 'sig/types.rbs', line 141 def per_second @per_second end |
Class Method Details
.default ⇒ RateLimitConfig
146 |
# File 'sig/types.rbs', line 146
def self.default: () -> RateLimitConfig
|