class Sweatpants::Configuration

Attributes

actions_to_trap[RW]
client[RW]
flush_frequency[RW]
queue[RW]

Public Class Methods

new() click to toggle source
# File lib/sweatpants/configuration.rb, line 6
def initialize
  @flush_frequency = 1
  @queue_type = :redis
  @actions_to_trap = [:index]
  @client = Elasticsearch::Client.new
  @redis_config = {
    host: 'localhost',
    port: 6379,
    list: 'sweatpants_queue',
    database: 3
  }
end