Class: Tantot::Config

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/tantot/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

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

#formatObject

Returns the value of attribute format.



5
6
7
# File 'lib/tantot/config.rb', line 5

def format
  @format
end

#sidekiq_queueObject

Returns the value of attribute sidekiq_queue.



5
6
7
# File 'lib/tantot/config.rb', line 5

def sidekiq_queue
  @sidekiq_queue
end

#strategyObject

Returns the value of attribute strategy.



5
6
7
# File 'lib/tantot/config.rb', line 5

def strategy
  @strategy
end

#sweep_on_pushObject

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_callbacksObject

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