Class: AuditedAsync::Configurator

Inherits:
Object
  • Object
show all
Defined in:
lib/audited_async/configurator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfigurator

Returns a new instance of Configurator.



5
6
7
8
9
# File 'lib/audited_async/configurator.rb', line 5

def initialize
  @enabled     = true
  @job_name    = 'AuditedAsync::AuditAsyncJob'
  @job_options = { wait: 1.second }
end

Instance Attribute Details

#enabledObject Also known as: enabled?

Returns the value of attribute enabled.



3
4
5
# File 'lib/audited_async/configurator.rb', line 3

def enabled
  @enabled
end

#job_nameObject

Returns the value of attribute job_name.



3
4
5
# File 'lib/audited_async/configurator.rb', line 3

def job_name
  @job_name
end

#job_optionsObject

Returns the value of attribute job_options.



3
4
5
# File 'lib/audited_async/configurator.rb', line 3

def job_options
  @job_options
end

Instance Method Details

#jobObject



17
18
19
# File 'lib/audited_async/configurator.rb', line 17

def job
  @job_name.constantize
end