Class: TTY::Logger::Config::FiltersProvider
- Inherits:
-
Object
- Object
- TTY::Logger::Config::FiltersProvider
- Defined in:
- lib/tty/logger/config.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#mask ⇒ Object
Returns the value of attribute mask.
-
#message ⇒ Object
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize ⇒ FiltersProvider
constructor
A new instance of FiltersProvider.
- #to_h ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize ⇒ FiltersProvider
Returns a new instance of FiltersProvider.
59 60 61 62 63 |
# File 'lib/tty/logger/config.rb', line 59 def initialize @message = [] @data = [] @mask = FILTERED end |
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data.
57 58 59 |
# File 'lib/tty/logger/config.rb', line 57 def data @data end |
#mask ⇒ Object
Returns the value of attribute mask.
57 58 59 |
# File 'lib/tty/logger/config.rb', line 57 def mask @mask end |
#message ⇒ Object
Returns the value of attribute message.
57 58 59 |
# File 'lib/tty/logger/config.rb', line 57 def @message end |
Instance Method Details
#to_h ⇒ Object
65 66 67 |
# File 'lib/tty/logger/config.rb', line 65 def to_h { message: @message, data: @data, mask: @mask } end |
#to_s ⇒ Object
69 70 71 |
# File 'lib/tty/logger/config.rb', line 69 def to_s to_h.inspect end |