Class: Inttegro::SecretKey::Usage

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

Overview

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

#key ⇒ Inttegro::SecretKey (readonly)

Public secret key metadata. The bearer token is never returned by read or mutation endpoints.

Required in the API payload. Wire name: key.

Returns:



32
33
34
35
# File 'lib/inttegro/secret_key/usage.rb', line 32

class Usage < T::Struct
  const :key, Inttegro::SecretKey
  const :usage, Inttegro::SecretKey::UsagePage
end

#usage ⇒ Inttegro::SecretKey::UsagePage (readonly)

Value of the usage field in the Inttegro API payload.

Required in the API payload. Wire name: usage.



32
33
34
35
# File 'lib/inttegro/secret_key/usage.rb', line 32

class Usage < T::Struct
  const :key, Inttegro::SecretKey
  const :usage, Inttegro::SecretKey::UsagePage
end