Class: AdLint::Postfilter::CsvMessageLine

Inherits:
MessageLine show all
Defined in:
lib/adlint/postfilter/content.rb

Instance Attribute Summary

Attributes inherited from MessageLine

#fpath, #line_no, #message_id

Instance Method Summary collapse

Methods inherited from MessageLine

#filterable?, #match_with?

Methods inherited from Line

#filterable?

Constructor Details

#initialize(str) ⇒ CsvMessageLine

Returns a new instance of CsvMessageLine.



115
116
117
118
# File 'lib/adlint/postfilter/content.rb', line 115

def initialize(str)
  fields = CSV.parse(str).first
  super(str, fields.fetch(1), fields.fetch(2), fields.fetch(4))
end