Method: Amadeus::ResponseError#code

Defined in:
lib/amadeus/client/errors.rb

#codeString (readonly)

A unique code for this type of error. Options include NetworkError, ParserError, ServerError, AuthenticationError, NotFoundError and UnknownError.

Returns:

  • (String)


19
20
21
# File 'lib/amadeus/client/errors.rb', line 19

def code
  @code
end