Module: Dap::Filter::BaseDecoder
- Includes:
- Base
- Included in:
- FilterDecodeBacnetRPMReply, FilterDecodeDNSVersionReply, FilterDecodeDTLS, FilterDecodeHTTPReply, FilterDecodeIPMIChanAuthReply, FilterDecodeLdapSearchResult, FilterDecodeMDNSSrvReply, FilterDecodeMSSQLReply, FilterDecodeMSSQLVersion, FilterDecodeNATPMPExternalAddressResponse, FilterDecodeNTPReply, FilterDecodeNetbiosStatusReply, FilterDecodePortmapperReply, FilterDecodeSIPOptionsReply, FilterDecodeSMBClient, FilterDecodeSNMPGetReply, FilterDecodeSSHKeyscan, FilterDecodeUPNP_SSDP_Reply, FilterDecodeURI, FilterDecodeWDBRPC_Reply, FilterDecodeX509, FilterExtractHostname, FilterGeoIP, FilterGeoIPAsn, FilterGeoIPOrg
- Defined in:
- lib/dap/filter/base.rb
Instance Attribute Summary
Attributes included from Base
Instance Method Summary collapse
Methods included from Base
Instance Method Details
#process(doc) ⇒ Object
24 25 26 27 28 29 30 31 32 33 |
# File 'lib/dap/filter/base.rb', line 24 def process(doc) self.opts.each_pair do |k,v| next unless doc.has_key?(k) info = decode(doc[k]) || {} info.each_pair do |x,y| doc[ "#{k}.#{x}" ] = y end end [ doc ] end |