Class: Inttegro::Application::SecretKey

Inherits:
T::Struct
  • Object
show all
Defined in:
lib/inttegro/app/secret_key.rb

Overview

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

#id ⇒ String? (readonly)

Value of the id field in the Inttegro API payload.

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

Returns:

  • (String, nil)


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

class SecretKey < T::Struct
  const :id, T.nilable(String), default: nil
  const :token_type, T.nilable(String), default: nil
  const :issued_at, T.nilable(Time), default: nil
  const :token, T.nilable(String), default: nil
end

#issued_at ⇒ Time? (readonly)

Value of the issued_at field in the Inttegro API payload.

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

Returns:

  • (Time, nil)


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

class SecretKey < T::Struct
  const :id, T.nilable(String), default: nil
  const :token_type, T.nilable(String), default: nil
  const :issued_at, T.nilable(Time), default: nil
  const :token, T.nilable(String), default: nil
end

#token ⇒ String? (readonly)

Value of the token field in the Inttegro API payload.

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

Returns:

  • (String, nil)


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

class SecretKey < T::Struct
  const :id, T.nilable(String), default: nil
  const :token_type, T.nilable(String), default: nil
  const :issued_at, T.nilable(Time), default: nil
  const :token, T.nilable(String), default: nil
end

#token_type ⇒ String? (readonly)

Value of the token_type field in the Inttegro API payload.

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

Returns:

  • (String, nil)


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

class SecretKey < T::Struct
  const :id, T.nilable(String), default: nil
  const :token_type, T.nilable(String), default: nil
  const :issued_at, T.nilable(Time), default: nil
  const :token, T.nilable(String), default: nil
end