Class: Nanobot::Config::SchedulerConfig

Inherits:
Struct
  • Object
show all
Defined in:
lib/nanobot/config/schema.rb

Overview

Scheduler service configuration

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(enabled: true, tick_interval: 15) ⇒ SchedulerConfig

Returns a new instance of SchedulerConfig.

Parameters:

  • enabled (Boolean) (defaults to: true) —

    whether the scheduler service is active

  • tick_interval (Integer) (defaults to: 15) —

    seconds between schedule evaluation ticks



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

Returns:

  • (Object) —

    the current value of 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

Returns:

  • (Object) —

    the current value of tick_interval



251
252
253
# File 'lib/nanobot/config/schema.rb', line 251

def tick_interval
  @tick_interval
end