Class: Inttegro::Application::RestrictedCapability

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

Overview

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

#requirements ⇒ Inttegro::Application::CapabilityRequirements (readonly)

Value of the requirements field in the Inttegro API payload.

Required in the API payload. Wire name: requirements.



44
45
46
47
48
49
# File 'lib/inttegro/app/restricted_capability.rb', line 44

class RestrictedCapability < T::Struct
  const :status, Inttegro::Application::RestrictedCapabilityStatus
  const :status_reason, Inttegro::Application::RestrictedCapabilityStatusReason
  const :status_changed_at, Time
  const :requirements, Inttegro::Application::CapabilityRequirements
end

#status ⇒ Inttegro::Application::RestrictedCapabilityStatus (readonly)

Value of the status field in the Inttegro API payload.

Required in the API payload. Wire name: status.



44
45
46
47
48
49
# File 'lib/inttegro/app/restricted_capability.rb', line 44

class RestrictedCapability < T::Struct
  const :status, Inttegro::Application::RestrictedCapabilityStatus
  const :status_reason, Inttegro::Application::RestrictedCapabilityStatusReason
  const :status_changed_at, Time
  const :requirements, Inttegro::Application::CapabilityRequirements
end

#status_changed_at ⇒ Time (readonly)

Value of the status_changed_at field in the Inttegro API payload.

Required in the API payload. Wire name: status_changed_at.

Returns:

  • (Time)


44
45
46
47
48
49
# File 'lib/inttegro/app/restricted_capability.rb', line 44

class RestrictedCapability < T::Struct
  const :status, Inttegro::Application::RestrictedCapabilityStatus
  const :status_reason, Inttegro::Application::RestrictedCapabilityStatusReason
  const :status_changed_at, Time
  const :requirements, Inttegro::Application::CapabilityRequirements
end

#status_reason ⇒ Inttegro::Application::RestrictedCapabilityStatusReason (readonly)

Value of the status_reason field in the Inttegro API payload.

Required in the API payload. Wire name: status_reason.



44
45
46
47
48
49
# File 'lib/inttegro/app/restricted_capability.rb', line 44

class RestrictedCapability < T::Struct
  const :status, Inttegro::Application::RestrictedCapabilityStatus
  const :status_reason, Inttegro::Application::RestrictedCapabilityStatusReason
  const :status_changed_at, Time
  const :requirements, Inttegro::Application::CapabilityRequirements
end