Class: LogStash::Filters::DataDictionary
- Inherits:
-
Object
- Object
- LogStash::Filters::DataDictionary
- Defined in:
- lib/logstash/filters/data_dictionary.rb
Instance Attribute Summary collapse
-
#file ⇒ Object
readonly
Returns the value of attribute file.
Instance Method Summary collapse
-
#initialize(file_path) ⇒ DataDictionary
constructor
A new instance of DataDictionary.
Constructor Details
#initialize(file_path) ⇒ DataDictionary
Returns a new instance of DataDictionary.
8 9 10 11 12 |
# File 'lib/logstash/filters/data_dictionary.rb', line 8 def initialize(file_path) @file = ::File.new(file_path) # throw an exception if the file isn't found super(file_path) end |
Instance Attribute Details
#file ⇒ Object (readonly)
Returns the value of attribute file.
6 7 8 |
# File 'lib/logstash/filters/data_dictionary.rb', line 6 def file @file end |