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)


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

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

Instance Attribute Details

#burstInteger?

Returns the value of attribute burst.

Returns:

  • (Integer, nil)


126
127
128
# File 'sig/types.rbs', line 126

def burst
  @burst
end

#ip_basedBoolean?

Returns the value of attribute ip_based.

Returns:

  • (Boolean, nil)


127
128
129
# File 'sig/types.rbs', line 127

def ip_based
  @ip_based
end

#per_secondInteger?

Returns the value of attribute per_second.

Returns:

  • (Integer, nil)


125
126
127
# File 'sig/types.rbs', line 125

def per_second
  @per_second
end

Class Method Details

.defaultRateLimitConfig

Returns:



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

def self.default: () -> RateLimitConfig