Class: AdLint::Postfilter::CsvMessageLine
- Inherits:
-
MessageLine
- Object
- String
- Line
- MessageLine
- AdLint::Postfilter::CsvMessageLine
- Defined in:
- lib/adlint/postfilter/content.rb
Instance Attribute Summary
Attributes inherited from MessageLine
Instance Method Summary collapse
-
#initialize(str) ⇒ CsvMessageLine
constructor
A new instance of CsvMessageLine.
Methods inherited from MessageLine
Methods inherited from Line
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 |