Class: Inttegro::UploadRequest::Attempts
- Inherits:
-
T::Struct
- Object
- T::Struct
- Inttegro::UploadRequest::Attempts
- 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
-
#attempt_count ⇒ Integer
readonly
Value of the
attempt_countfield in the Inttegro API payload. -
#failed_attempt_count ⇒ Integer
readonly
Value of the
failed_attempt_countfield in the Inttegro API payload. -
#last_attempted_at ⇒ Time?
readonly
Value of the
last_attempted_atfield in the Inttegro API payload. -
#max_attempts ⇒ Integer?
readonly
Value of the
max_attemptsfield in the Inttegro API payload.
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.
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.
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.
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.
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 |