Class: Inttegro::Application::CapabilityRequirement

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

Overview

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

#code ⇒ String (readonly)

Stable public identifier for the requirement.

Required in the API payload. Wire name: code.

Returns:

  • (String)


35
36
37
38
39
# File 'lib/inttegro/app/capability_requirement.rb', line 35

class CapabilityRequirement < T::Struct
  const :code, String
  const :description, String
  const :due_at, T.nilable(Time)
end

#description ⇒ String (readonly)

Public explanation of what must be completed.

Required in the API payload. Wire name: description.

Returns:

  • (String)


35
36
37
38
39
# File 'lib/inttegro/app/capability_requirement.rb', line 35

class CapabilityRequirement < T::Struct
  const :code, String
  const :description, String
  const :due_at, T.nilable(Time)
end

#due_at ⇒ Time? (readonly)

Requirement deadline, or null when no deadline applies.

Required in the API payload. Wire name: due_at.

Returns:

  • (Time, nil)


35
36
37
38
39
# File 'lib/inttegro/app/capability_requirement.rb', line 35

class CapabilityRequirement < T::Struct
  const :code, String
  const :description, String
  const :due_at, T.nilable(Time)
end