class LogStash::Filters::Jdbc::Column
Attributes
datatype[R]
name[R]
Private Instance Methods
parse_options()
click to toggle source
# File lib/logstash/filters/jdbc/column.rb, line 21 def parse_options unless @options.is_a?(Array) @option_errors << "The column options must be an array" end @name, @datatype = @options unless @name && @name.is_a?(String) @option_errors << "The first column option is the name and must be a string" end unless @datatype && @datatype.is_a?(String) @option_errors << "The second column option is the datatype and must be a string" end @valid = @option_errors.empty? end
post_initialize()
click to toggle source
# File lib/logstash/filters/jdbc/column.rb, line 10 def post_initialize if valid? @name = @name.to_sym @datatype = @datatype.to_sym end end
to_array()
click to toggle source
# File lib/logstash/filters/jdbc/column.rb, line 17 def to_array [@name.to_s, @datatype.to_s] end