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
# File 'lib/audited_async/configurator.rb', line 5

def initialize
  @enabled  = true
  @job_name = 'AuditedAsync::AuditAsyncJob'
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

Instance Method Details

#jobObject



12
13
14
# File 'lib/audited_async/configurator.rb', line 12

def job
  @job_name.constantize
end