Class: AgentHarness::RateLimitConfig
- Inherits:
-
Object
- Object
- AgentHarness::RateLimitConfig
- Defined in:
- lib/agent_harness/configuration.rb
Overview
Rate limit configuration
Instance Attribute Summary collapse
-
#default_reset_time ⇒ Object
Returns the value of attribute default_reset_time.
-
#enabled ⇒ Object
Returns the value of attribute enabled.
Instance Method Summary collapse
-
#initialize ⇒ RateLimitConfig
constructor
A new instance of RateLimitConfig.
Constructor Details
#initialize ⇒ RateLimitConfig
Returns a new instance of RateLimitConfig.
216 217 218 219 |
# File 'lib/agent_harness/configuration.rb', line 216 def initialize @enabled = true @default_reset_time = 3600 # 1 hour end |
Instance Attribute Details
#default_reset_time ⇒ Object
Returns the value of attribute default_reset_time.
214 215 216 |
# File 'lib/agent_harness/configuration.rb', line 214 def default_reset_time @default_reset_time end |
#enabled ⇒ Object
Returns the value of attribute enabled.
214 215 216 |
# File 'lib/agent_harness/configuration.rb', line 214 def enabled @enabled end |