Class: LogStash::Filters::DataDictionary

Inherits:
Object
  • Object
show all
Defined in:
lib/logstash/filters/data_dictionary.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#fileObject (readonly)

Returns the value of attribute file.



6
7
8
# File 'lib/logstash/filters/data_dictionary.rb', line 6

def file
  @file
end