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.
129 |
# File 'sig/types.rbs', line 129
def initialize: (?per_second: Integer, ?burst: Integer, ?ip_based: bool) -> void
|
Instance Attribute Details
#burst ⇒ Integer?
Returns the value of attribute burst.
126 127 128 |
# File 'sig/types.rbs', line 126 def burst @burst end |
#ip_based ⇒ Boolean?
Returns the value of attribute ip_based.
127 128 129 |
# File 'sig/types.rbs', line 127 def ip_based @ip_based end |
#per_second ⇒ Integer?
Returns the value of attribute per_second.
125 126 127 |
# File 'sig/types.rbs', line 125 def per_second @per_second end |
Class Method Details
.default ⇒ RateLimitConfig
130 |
# File 'sig/types.rbs', line 130
def self.default: () -> RateLimitConfig
|