Class: Inttegro::SecretKey::GenerateRequest

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

Overview

Optional public input for secret key generation.

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

#label ⇒ String? (readonly)

Optional human-readable label. Surrounding whitespace is trimmed; an empty value creates an unlabeled key.

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

Returns:

  • (String, nil)


24
25
26
# File 'lib/inttegro/secret_key/generate_request.rb', line 24

class GenerateRequest < T::Struct
  const :label, T.nilable(String), default: nil
end