Sha256: c98b8a94d297eaa784bcddd63092e1375ca9399bf1b233a041c2a520ccc22f9d

Contents?: true

Size: 622 Bytes

Versions: 3

Compression:

Stored size: 622 Bytes

Contents

module Dummer
  class Setting
    attr_accessor :rate, :output, :labeled, :label_delimiter, :delimiter, :fields, :workers, :message, :input, :log
    attr_accessor :host, :port, :tag

    def initialize
      @rate = 500
      @output = STDOUT
      @host = nil
      @port = 24224
      @labeled = true
      @label_delimiter = ":"
      @delimiter = "\t"
      @tag = {type: :string, value: "dummer"}
      @fields = nil
      @workers = 1
      @log = '-'
      @message = "time:2013-11-25 00:23:52 +0900\tlevel:ERROR\tmethod:POST\turi:/api/v1/people\treqtime:3.1983877060667103\n"
      @input = nil
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
dummer-0.4.1 lib/dummer/setting.rb
dummer-0.4.0 lib/dummer/setting.rb
dummer-0.3.5 lib/dummer/setting.rb