Class: Cadenya::Models::ObjectiveEventData::Cancelled

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

Overview

See Also:

  • Cadenya::Models::ObjectiveEventData#cancelled

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

#initializeCancelled

Returns a new instance of Cancelled.

Parameters:

  • message: (String)


147
# File 'sig/cadenya/models/objective_event_data.rbs', line 147

def initialize: (?message: String) -> void

Instance Attribute Details

#messageString?

Optional human-readable note recorded at cancel time. Today the workflow sets "Cancelled" but this field leaves room for richer reasons (e.g. "Cancelled by user", "Cancelled by schedule sweep", "Credit balance exhausted").

Parameters:

  • (String)

Returns:

  • (String, nil)


145
# File 'lib/cadenya/models/objective_event_data.rb', line 145

optional :message, String

Instance Method Details

#to_hash{ message: String }

Returns:

  • ({ message: String })


149
# File 'sig/cadenya/models/objective_event_data.rbs', line 149

def to_hash: -> { message: String }