Class: WebfleetConnect::FormatHandlers::CsvErrorParser

Inherits:
ErrorParser
  • Object
show all
Defined in:
lib/webfleet_connect/format_handlers/csv_error_parser.rb

Instance Method Summary collapse

Methods inherited from ErrorParser

#initialize

Constructor Details

This class inherits a constructor from WebfleetConnect::FormatHandlers::ErrorParser

Instance Method Details

#error?(message) ⇒ Boolean

Returns:

  • (Boolean)


5
6
7
8
# File 'lib/webfleet_connect/format_handlers/csv_error_parser.rb', line 5

def error?(message)
  code = message.split(',').first
  four_digit_number?(code)
end