Class: Inttegro::UploadRequest::Attempts

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

Overview

Typed representation of the attempts 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

#attempt_count ⇒ Integer (readonly)

Value of the attempt_count field in the Inttegro API payload.

Required in the API payload. Wire name: attempt_count.

Returns:

  • (Integer)


41
42
43
44
45
46
# File 'lib/inttegro/upload_request/attempts.rb', line 41

class Attempts < T::Struct
  const :max_attempts, T.nilable(Integer), default: nil
  const :attempt_count, Integer
  const :failed_attempt_count, Integer
  const :last_attempted_at, T.nilable(Time), default: nil
end

#failed_attempt_count ⇒ Integer (readonly)

Value of the failed_attempt_count field in the Inttegro API payload.

Required in the API payload. Wire name: failed_attempt_count.

Returns:

  • (Integer)


41
42
43
44
45
46
# File 'lib/inttegro/upload_request/attempts.rb', line 41

class Attempts < T::Struct
  const :max_attempts, T.nilable(Integer), default: nil
  const :attempt_count, Integer
  const :failed_attempt_count, Integer
  const :last_attempted_at, T.nilable(Time), default: nil
end

#last_attempted_at ⇒ Time? (readonly)

Value of the last_attempted_at field in the Inttegro API payload.

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

Returns:

  • (Time, nil)


41
42
43
44
45
46
# File 'lib/inttegro/upload_request/attempts.rb', line 41

class Attempts < T::Struct
  const :max_attempts, T.nilable(Integer), default: nil
  const :attempt_count, Integer
  const :failed_attempt_count, Integer
  const :last_attempted_at, T.nilable(Time), default: nil
end

#max_attempts ⇒ Integer? (readonly)

Value of the max_attempts field in the Inttegro API payload.

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

Returns:

  • (Integer, nil)


41
42
43
44
45
46
# File 'lib/inttegro/upload_request/attempts.rb', line 41

class Attempts < T::Struct
  const :max_attempts, T.nilable(Integer), default: nil
  const :attempt_count, Integer
  const :failed_attempt_count, Integer
  const :last_attempted_at, T.nilable(Time), default: nil
end