Class: Cadenya::Models::Objectives::ObjectiveTaskData

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/cadenya/models/objectives/objective_task_data.rb,
sig/cadenya/models/objectives/objective_task_data.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#initializeObject



20
# File 'sig/cadenya/models/objectives/objective_task_data.rbs', line 20

def initialize: (

Instance Attribute Details

#completedBoolean

Whether the task has been completed

Parameters:

  • value (Boolean)

Returns:

  • (Boolean)


11
# File 'lib/cadenya/models/objectives/objective_task_data.rb', line 11

required :completed, Cadenya::Internal::Type::Boolean

#completed_atTime? (readonly)

Returns the value of attribute completed_at.

Returns:

  • (Time, nil)


16
17
18
# File 'sig/cadenya/models/objectives/objective_task_data.rbs', line 16

def completed_at
  @completed_at
end

#numberInteger

Returns the value of attribute number.

Returns:

  • (Integer)


14
15
16
# File 'sig/cadenya/models/objectives/objective_task_data.rbs', line 14

def number
  @number
end

#taskString

Description of the task to be completed

Parameters:

  • value (String)

Returns:

  • (String)


17
# File 'lib/cadenya/models/objectives/objective_task_data.rb', line 17

required :task, String

Instance Method Details

#completed_at=Time (readonly)

Parameters:

  • (Time)

Returns:

  • (Time)


18
# File 'sig/cadenya/models/objectives/objective_task_data.rbs', line 18

def completed_at=: (Time) -> Time

#to_hash{

Returns:

  • ({)


27
# File 'sig/cadenya/models/objectives/objective_task_data.rbs', line 27

def to_hash: -> {