Class: Cadenya::Models::ObjectiveEventDataNotice

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

Defined Under Namespace

Modules: Type Classes: Notice

Instance Attribute Summary collapse

Class Method 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

#initialize(notice:, type:) ⇒ Object

Some parameter documentations has been truncated, see Cadenya::Models::ObjectiveEventDataNotice for more details.

Parameters:



# File 'lib/cadenya/models/objective_event_data_notice.rb', line 21

Instance Attribute Details

#noticeCadenya::Models::ObjectiveEventDataNotice::Notice

Notice is a non-terminal diagnostic emitted by the runtime when something noteworthy but non-fatal happens during an objective — for example a just-in-time tool set failing to load, or a previously loaded tool being dropped because it was archived. Notices carry no structured payload; they exist to make the objective timeline self-explanatory.

Parameters:

  • value (Cadenya::ObjectiveEventDataNotice::Notice)

Returns:



14
# File 'lib/cadenya/models/objective_event_data_notice.rb', line 14

required :notice, -> { Cadenya::ObjectiveEventDataNotice::Notice }

#typeSymbol, Cadenya::Models::ObjectiveEventDataNotice::Type

Parameters:

  • value (Cadenya::Models::ObjectiveEventDataNotice::type_)

Returns:



19
# File 'lib/cadenya/models/objective_event_data_notice.rb', line 19

required :type, enum: -> { Cadenya::ObjectiveEventDataNotice::Type }

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/cadenya/models/objective_event_data_notice.rb', line 74

Instance Method Details

#to_hash{

Returns:

  • ({)


19
# File 'sig/cadenya/models/objective_event_data_notice.rbs', line 19

def to_hash: -> {