Class: Traceable::Config
- Inherits:
-
Object
- Object
- Traceable::Config
- Defined in:
- lib/traceable/config.rb
Instance Attribute Summary collapse
-
#default_tags ⇒ Object
Returns the value of attribute default_tags.
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#max_array_values ⇒ Object
Returns the value of attribute max_array_values.
-
#max_hash_keys ⇒ Object
Returns the value of attribute max_hash_keys.
-
#max_string_length ⇒ Object
Returns the value of attribute max_string_length.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
13 14 15 16 17 18 19 20 21 22 |
# File 'lib/traceable/config.rb', line 13 def initialize @logger = Logger.new(STDOUT) @logger.level = Logger::INFO @default_tags = {} @max_string_length = Args::MAX_STRING_LENGTH @max_array_values = Args::MAX_ARRAY_VALUES @max_hash_keys = Args::MAX_HASH_KEYS end |
Instance Attribute Details
#default_tags ⇒ Object
Returns the value of attribute default_tags.
7 8 9 |
# File 'lib/traceable/config.rb', line 7 def @default_tags end |
#logger ⇒ Object
Returns the value of attribute logger.
8 9 10 |
# File 'lib/traceable/config.rb', line 8 def logger @logger end |
#max_array_values ⇒ Object
Returns the value of attribute max_array_values.
10 11 12 |
# File 'lib/traceable/config.rb', line 10 def max_array_values @max_array_values end |
#max_hash_keys ⇒ Object
Returns the value of attribute max_hash_keys.
11 12 13 |
# File 'lib/traceable/config.rb', line 11 def max_hash_keys @max_hash_keys end |
#max_string_length ⇒ Object
Returns the value of attribute max_string_length.
9 10 11 |
# File 'lib/traceable/config.rb', line 9 def max_string_length @max_string_length end |