Class: Inttegro::OTP::VerificationAttempt

Inherits:
T::Struct
  • Object
show all
Defined in:
lib/inttegro/otp/verification_attempt.rb

Overview

Details of a verification attempt

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

#attempted_at ⇒ Time (readonly)

Value of the attempted_at field in the Inttegro API payload.

Required in the API payload. Wire name: attempted_at.

Returns:

  • (Time)


48
49
50
51
52
53
54
# File 'lib/inttegro/otp/verification_attempt.rb', line 48

class VerificationAttempt < T::Struct
  const :attempted_at, Time
  const :id, String
  const :presented_token, String
  const :recipient, String
  const :result, Inttegro::OTP::VerificationAttemptResult
end

#id ⇒ String (readonly)

Value of the id field in the Inttegro API payload.

Required in the API payload. Wire name: id.

Returns:

  • (String)


48
49
50
51
52
53
54
# File 'lib/inttegro/otp/verification_attempt.rb', line 48

class VerificationAttempt < T::Struct
  const :attempted_at, Time
  const :id, String
  const :presented_token, String
  const :recipient, String
  const :result, Inttegro::OTP::VerificationAttemptResult
end

#presented_token ⇒ String (readonly)

Token submitted for this verification attempt.

Required in the API payload. Wire name: presented_token.

Returns:

  • (String)


48
49
50
51
52
53
54
# File 'lib/inttegro/otp/verification_attempt.rb', line 48

class VerificationAttempt < T::Struct
  const :attempted_at, Time
  const :id, String
  const :presented_token, String
  const :recipient, String
  const :result, Inttegro::OTP::VerificationAttemptResult
end

#recipient ⇒ String (readonly)

Value of the recipient field in the Inttegro API payload.

Required in the API payload. Wire name: recipient.

Returns:

  • (String)


48
49
50
51
52
53
54
# File 'lib/inttegro/otp/verification_attempt.rb', line 48

class VerificationAttempt < T::Struct
  const :attempted_at, Time
  const :id, String
  const :presented_token, String
  const :recipient, String
  const :result, Inttegro::OTP::VerificationAttemptResult
end

#result ⇒ Inttegro::OTP::VerificationAttemptResult (readonly)

Value of the result field in the Inttegro API payload.

Required in the API payload. Wire name: result.



48
49
50
51
52
53
54
# File 'lib/inttegro/otp/verification_attempt.rb', line 48

class VerificationAttempt < T::Struct
  const :attempted_at, Time
  const :id, String
  const :presented_token, String
  const :recipient, String
  const :result, Inttegro::OTP::VerificationAttemptResult
end