Class: DummyLogGenerator::Setting
- Inherits:
-
Object
- Object
- DummyLogGenerator::Setting
- Defined in:
- lib/dummy_log_generator/setting.rb
Instance Attribute Summary collapse
-
#delimiter ⇒ Object
Returns the value of attribute delimiter.
-
#fields ⇒ Object
Returns the value of attribute fields.
-
#input ⇒ Object
Returns the value of attribute input.
-
#labeled ⇒ Object
Returns the value of attribute labeled.
-
#message ⇒ Object
Returns the value of attribute message.
-
#output ⇒ Object
Returns the value of attribute output.
-
#rate ⇒ Object
Returns the value of attribute rate.
-
#workers ⇒ Object
Returns the value of attribute workers.
Instance Method Summary collapse
-
#initialize ⇒ Setting
constructor
A new instance of Setting.
Constructor Details
#initialize ⇒ Setting
Returns a new instance of Setting.
5 6 7 8 9 10 11 12 13 14 |
# File 'lib/dummy_log_generator/setting.rb', line 5 def initialize @rate = 500 @output = STDOUT @labeled = true @delimiter = "\t" @fields = nil @workers = 1 = "time:2013-11-25 00:23:52 +0900\tlevel:ERROR\tmethod:POST\turi:/api/v1/people\treqtime:3.1983877060667103\n" @input = nil end |
Instance Attribute Details
#delimiter ⇒ Object
Returns the value of attribute delimiter.
3 4 5 |
# File 'lib/dummy_log_generator/setting.rb', line 3 def delimiter @delimiter end |
#fields ⇒ Object
Returns the value of attribute fields.
3 4 5 |
# File 'lib/dummy_log_generator/setting.rb', line 3 def fields @fields end |
#input ⇒ Object
Returns the value of attribute input.
3 4 5 |
# File 'lib/dummy_log_generator/setting.rb', line 3 def input @input end |
#labeled ⇒ Object
Returns the value of attribute labeled.
3 4 5 |
# File 'lib/dummy_log_generator/setting.rb', line 3 def labeled @labeled end |
#message ⇒ Object
Returns the value of attribute message.
3 4 5 |
# File 'lib/dummy_log_generator/setting.rb', line 3 def end |
#output ⇒ Object
Returns the value of attribute output.
3 4 5 |
# File 'lib/dummy_log_generator/setting.rb', line 3 def output @output end |
#rate ⇒ Object
Returns the value of attribute rate.
3 4 5 |
# File 'lib/dummy_log_generator/setting.rb', line 3 def rate @rate end |
#workers ⇒ Object
Returns the value of attribute workers.
3 4 5 |
# File 'lib/dummy_log_generator/setting.rb', line 3 def workers @workers end |