Class: Cadenya::Models::ObjectiveEventData::Cancelled
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Cadenya::Models::ObjectiveEventData::Cancelled
- Defined in:
- lib/cadenya/models/objective_event_data.rb,
sig/cadenya/models/objective_event_data.rbs
Overview
Instance Attribute Summary collapse
-
#message ⇒ String?
Optional human-readable note recorded at cancel time.
Instance Method Summary collapse
-
#initialize ⇒ Cancelled
constructor
A new instance of Cancelled.
- #to_hash ⇒ { message: String }
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 ⇒ Cancelled
Returns a new instance of Cancelled.
156 |
# File 'sig/cadenya/models/objective_event_data.rbs', line 156
def initialize: (?message: String) -> void
|
Instance Attribute Details
#message ⇒ String?
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").
157 |
# File 'lib/cadenya/models/objective_event_data.rb', line 157 optional :message, String |
Instance Method Details
#to_hash ⇒ { message: String }
158 |
# File 'sig/cadenya/models/objective_event_data.rbs', line 158
def to_hash: -> { message: String }
|