Class: Inttegro::UploadRequest::LatestError

Inherits:
T::Struct
  • Object
show all
Defined in:
lib/inttegro/upload_request/latest_error.rb

Overview

Typed representation of the latest error object in the Inttegro API.

This generated model is immutable. Construct it with .new, or decode a string-keyed API payload with .from_hash. #serialize produces a string-keyed hash using the original wire field names and serialized enum values.

Instance Attribute Summary collapse

Instance Attribute Details

#at ⇒ Time? (readonly)

Value of the at field in the Inttegro API payload.

Optional in the API payload; omitted values default to nil. Wire name: at.

Returns:

  • (Time, nil)


47
48
49
50
51
52
53
# File 'lib/inttegro/upload_request/latest_error.rb', line 47

class LatestError < T::Struct
  const :code, T.nilable(String), default: nil
  const :param, T.nilable(String), default: nil
  const :message, T.nilable(String), default: nil
  const :retryable, T.nilable(T::Boolean), default: nil
  const :at, T.nilable(Time), default: nil
end

#code ⇒ String? (readonly)

Value of the code field in the Inttegro API payload.

Optional in the API payload; omitted values default to nil. Wire name: code.

Returns:

  • (String, nil)


47
48
49
50
51
52
53
# File 'lib/inttegro/upload_request/latest_error.rb', line 47

class LatestError < T::Struct
  const :code, T.nilable(String), default: nil
  const :param, T.nilable(String), default: nil
  const :message, T.nilable(String), default: nil
  const :retryable, T.nilable(T::Boolean), default: nil
  const :at, T.nilable(Time), default: nil
end

#message ⇒ String? (readonly)

Value of the message field in the Inttegro API payload.

Optional in the API payload; omitted values default to nil. Wire name: message.

Returns:

  • (String, nil)


47
48
49
50
51
52
53
# File 'lib/inttegro/upload_request/latest_error.rb', line 47

class LatestError < T::Struct
  const :code, T.nilable(String), default: nil
  const :param, T.nilable(String), default: nil
  const :message, T.nilable(String), default: nil
  const :retryable, T.nilable(T::Boolean), default: nil
  const :at, T.nilable(Time), default: nil
end

#param ⇒ String? (readonly)

Value of the param field in the Inttegro API payload.

Optional in the API payload; omitted values default to nil. Wire name: param.

Returns:

  • (String, nil)


47
48
49
50
51
52
53
# File 'lib/inttegro/upload_request/latest_error.rb', line 47

class LatestError < T::Struct
  const :code, T.nilable(String), default: nil
  const :param, T.nilable(String), default: nil
  const :message, T.nilable(String), default: nil
  const :retryable, T.nilable(T::Boolean), default: nil
  const :at, T.nilable(Time), default: nil
end

#retryable ⇒ Boolean? (readonly)

Value of the retryable field in the Inttegro API payload.

Optional in the API payload; omitted values default to nil. Wire name: retryable.

Returns:

  • (Boolean, nil)


47
48
49
50
51
52
53
# File 'lib/inttegro/upload_request/latest_error.rb', line 47

class LatestError < T::Struct
  const :code, T.nilable(String), default: nil
  const :param, T.nilable(String), default: nil
  const :message, T.nilable(String), default: nil
  const :retryable, T.nilable(T::Boolean), default: nil
  const :at, T.nilable(Time), default: nil
end