Class: WebfleetConnect::FormatHandlers::CsvResponseErrorParser

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

Instance Method Summary collapse

Instance Method Details

#to_hash(message) ⇒ Object



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

def to_hash(message)
  values = message.split(',')
  coupled_values = [:errorCode, :errorMsg].zip(values)
  Hash[coupled_values]
end