Class: AuditedAsync::Configurator
- Inherits:
-
Object
- Object
- AuditedAsync::Configurator
- Defined in:
- lib/audited_async/configurator.rb
Instance Attribute Summary collapse
-
#enabled ⇒ Object
(also: #enabled?)
Returns the value of attribute enabled.
-
#job_name ⇒ Object
Returns the value of attribute job_name.
-
#job_options ⇒ Object
Returns the value of attribute job_options.
Instance Method Summary collapse
-
#initialize ⇒ Configurator
constructor
A new instance of Configurator.
- #job ⇒ Object
Constructor Details
#initialize ⇒ Configurator
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
#enabled ⇒ Object 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_name ⇒ Object
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_options ⇒ Object
Returns the value of attribute job_options.
3 4 5 |
# File 'lib/audited_async/configurator.rb', line 3 def @job_options end |
Instance Method Details
#job ⇒ Object
17 18 19 |
# File 'lib/audited_async/configurator.rb', line 17 def job @job_name.constantize end |