Class: Spikard::RateLimitConfig

Inherits:
Object
  • Object
show all
Defined in:
sig/types.rbs

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeRateLimitConfig

Returns a new instance of RateLimitConfig.

Parameters:

  • per_second: (Integer)
  • burst: (Integer)
  • ip_based: (Boolean)


145
# File 'sig/types.rbs', line 145

def initialize: (?per_second: Integer, ?burst: Integer, ?ip_based: bool) -> void

Instance Attribute Details

#burstInteger?

Returns the value of attribute burst.

Returns:

  • (Integer, nil)


142
143
144
# File 'sig/types.rbs', line 142

def burst
  @burst
end

#ip_basedBoolean?

Returns the value of attribute ip_based.

Returns:

  • (Boolean, nil)


143
144
145
# File 'sig/types.rbs', line 143

def ip_based
  @ip_based
end

#per_secondInteger?

Returns the value of attribute per_second.

Returns:

  • (Integer, nil)


141
142
143
# File 'sig/types.rbs', line 141

def per_second
  @per_second
end

Class Method Details

.defaultRateLimitConfig

Returns:



146
# File 'sig/types.rbs', line 146

def self.default: () -> RateLimitConfig