Class: TTY::Logger::Config::FiltersProvider

Inherits:
Object
  • Object
show all
Defined in:
lib/tty/logger/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeFiltersProvider

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

#dataObject

Returns the value of attribute data.



57
58
59
# File 'lib/tty/logger/config.rb', line 57

def data
  @data
end

#maskObject

Returns the value of attribute mask.



57
58
59
# File 'lib/tty/logger/config.rb', line 57

def mask
  @mask
end

#messageObject

Returns the value of attribute message.



57
58
59
# File 'lib/tty/logger/config.rb', line 57

def message
  @message
end

Instance Method Details

#to_hObject



65
66
67
# File 'lib/tty/logger/config.rb', line 65

def to_h
  { message: @message, data: @data, mask: @mask }
end

#to_sObject



69
70
71
# File 'lib/tty/logger/config.rb', line 69

def to_s
  to_h.inspect
end