Class: Fluent::URLDecodeFilter
- Inherits:
-
Filter
- Object
- Filter
- Fluent::URLDecodeFilter
- Defined in:
- lib/fluent/plugin/filter_urldecode.rb
Instance Method Summary collapse
- #configure(conf) ⇒ Object
- #filter(tag, time, record) ⇒ Object
-
#initialize ⇒ URLDecodeFilter
constructor
A new instance of URLDecodeFilter.
Constructor Details
#initialize ⇒ URLDecodeFilter
Returns a new instance of URLDecodeFilter.
10 11 12 |
# File 'lib/fluent/plugin/filter_urldecode.rb', line 10 def initialize super end |
Instance Method Details
#configure(conf) ⇒ Object
16 17 18 |
# File 'lib/fluent/plugin/filter_urldecode.rb', line 16 def configure(conf) super end |
#filter(tag, time, record) ⇒ Object
20 21 22 23 24 25 |
# File 'lib/fluent/plugin/filter_urldecode.rb', line 20 def filter(tag, time, record) @fields.each { |key| record[key] = CGI.unescape(record[key]) if record.has_key? key } record end |