Class: Tantot::Config
- Inherits:
-
Object
- Object
- Tantot::Config
- Includes:
- Singleton
- Defined in:
- lib/tantot/config.rb
Instance Attribute Summary collapse
-
#format ⇒ Object
Returns the value of attribute format.
-
#sidekiq_queue ⇒ Object
Returns the value of attribute sidekiq_queue.
-
#strategy ⇒ Object
Returns the value of attribute strategy.
-
#sweep_on_push ⇒ Object
Returns the value of attribute sweep_on_push.
-
#use_after_commit_callbacks ⇒ Object
Returns the value of attribute use_after_commit_callbacks.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
7 8 9 10 11 12 13 |
# File 'lib/tantot/config.rb', line 7 def initialize @strategy = :inline @format = :compact @use_after_commit_callbacks = true @sweep_on_push = false @sidekiq_queue = :default end |
Instance Attribute Details
#format ⇒ Object
Returns the value of attribute format.
5 6 7 |
# File 'lib/tantot/config.rb', line 5 def format @format end |
#sidekiq_queue ⇒ Object
Returns the value of attribute sidekiq_queue.
5 6 7 |
# File 'lib/tantot/config.rb', line 5 def sidekiq_queue @sidekiq_queue end |
#strategy ⇒ Object
Returns the value of attribute strategy.
5 6 7 |
# File 'lib/tantot/config.rb', line 5 def strategy @strategy end |
#sweep_on_push ⇒ Object
Returns the value of attribute sweep_on_push.
5 6 7 |
# File 'lib/tantot/config.rb', line 5 def sweep_on_push @sweep_on_push end |
#use_after_commit_callbacks ⇒ Object
Returns the value of attribute use_after_commit_callbacks.
5 6 7 |
# File 'lib/tantot/config.rb', line 5 def use_after_commit_callbacks @use_after_commit_callbacks end |