Class: Nanobot::Config::SchedulerConfig
- Inherits:
-
Struct
- Object
- Struct
- Nanobot::Config::SchedulerConfig
- Defined in:
- lib/nanobot/config/schema.rb
Overview
Scheduler service configuration
Instance Attribute Summary collapse
-
#enabled ⇒ Object
Returns the value of attribute enabled.
-
#tick_interval ⇒ Object
Returns the value of attribute tick_interval.
Instance Method Summary collapse
-
#initialize(enabled: true, tick_interval: 15) ⇒ SchedulerConfig
constructor
A new instance of SchedulerConfig.
Constructor Details
#initialize(enabled: true, tick_interval: 15) ⇒ SchedulerConfig
Returns a new instance of SchedulerConfig.
254 255 256 |
# File 'lib/nanobot/config/schema.rb', line 254 def initialize(enabled: true, tick_interval: 15) super end |
Instance Attribute Details
#enabled ⇒ Object
Returns the value of attribute enabled
251 252 253 |
# File 'lib/nanobot/config/schema.rb', line 251 def enabled @enabled end |
#tick_interval ⇒ Object
Returns the value of attribute tick_interval
251 252 253 |
# File 'lib/nanobot/config/schema.rb', line 251 def tick_interval @tick_interval end |