Class: Cadenya::Models::Objectives::ObjectiveTaskData
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Cadenya::Models::Objectives::ObjectiveTaskData
- Defined in:
- lib/cadenya/models/objectives/objective_task_data.rb,
sig/cadenya/models/objectives/objective_task_data.rbs
Instance Attribute Summary collapse
-
#completed ⇒ Boolean
Whether the task has been completed.
-
#completed_at ⇒ Time?
readonly
Returns the value of attribute completed_at.
-
#number ⇒ Integer
Returns the value of attribute number.
-
#task ⇒ String
Description of the task to be completed.
Instance Method Summary collapse
- #completed_at ⇒ Time readonly
- #initialize ⇒ Object constructor
- #to_hash ⇒ {
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize ⇒ Object
20 |
# File 'sig/cadenya/models/objectives/objective_task_data.rbs', line 20
def initialize: (
|
Instance Attribute Details
#completed ⇒ Boolean
Whether the task has been completed
11 |
# File 'lib/cadenya/models/objectives/objective_task_data.rb', line 11 required :completed, Cadenya::Internal::Type::Boolean |
#completed_at ⇒ Time? (readonly)
Returns the value of attribute completed_at.
16 17 18 |
# File 'sig/cadenya/models/objectives/objective_task_data.rbs', line 16 def completed_at @completed_at end |
#number ⇒ Integer
Returns the value of attribute number.
14 15 16 |
# File 'sig/cadenya/models/objectives/objective_task_data.rbs', line 14 def number @number end |
#task ⇒ String
Description of the task to be completed
17 |
# File 'lib/cadenya/models/objectives/objective_task_data.rb', line 17 required :task, String |
Instance Method Details
#completed_at= ⇒ Time (readonly)
18 |
# File 'sig/cadenya/models/objectives/objective_task_data.rbs', line 18
def completed_at=: (Time) -> Time
|
#to_hash ⇒ {
27 |
# File 'sig/cadenya/models/objectives/objective_task_data.rbs', line 27
def to_hash: -> {
|