Class: Cadenya::Models::ObjectiveEvent
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Cadenya::Models::ObjectiveEvent
- Defined in:
- lib/cadenya/models/objective_event.rb,
sig/cadenya/models/objective_event.rbs
Overview
Instance Attribute Summary collapse
- #context_window_id ⇒ String?
- #data ⇒ Cadenya::Models::ObjectiveEventDataUserMessage, ...
-
#duration ⇒ String?
readonly
Returns the value of attribute duration.
- #info ⇒ Cadenya::Models::ObjectiveEventInfo?
-
#metadata ⇒ Cadenya::Models::OperationMetadata
Metadata for ephemeral operations and activities (e.g., objectives, executions, runs).
-
#started_at ⇒ Time?
readonly
Returns the value of attribute started_at.
Instance Method Summary collapse
- #duration ⇒ String readonly
-
#initialize(data:, metadata:, context_window_id: nil, duration: nil, info: nil, started_at: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see ObjectiveEvent for more details.
- #started_at ⇒ Time readonly
- #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(data:, metadata:, context_window_id: nil, duration: nil, info: nil, started_at: nil) ⇒ Object
Some parameter documentations has been truncated, see Cadenya::Models::ObjectiveEvent for more details.
|
|
# File 'lib/cadenya/models/objective_event.rb', line 49
|
Instance Attribute Details
#context_window_id ⇒ String?
22 |
# File 'lib/cadenya/models/objective_event.rb', line 22 optional :context_window_id, String, api_name: :contextWindowId |
#data ⇒ Cadenya::Models::ObjectiveEventDataUserMessage, ...
10 |
# File 'lib/cadenya/models/objective_event.rb', line 10 required :data, union: -> { Cadenya::ObjectiveEventData } |
#duration ⇒ String? (readonly)
Returns the value of attribute duration.
26 27 28 |
# File 'sig/cadenya/models/objective_event.rbs', line 26 def duration @duration end |
#info ⇒ Cadenya::Models::ObjectiveEventInfo?
27 |
# File 'lib/cadenya/models/objective_event.rb', line 27 optional :info, -> { Cadenya::ObjectiveEventInfo } |
#metadata ⇒ Cadenya::Models::OperationMetadata
Metadata for ephemeral operations and activities (e.g., objectives, executions, runs)
17 |
# File 'lib/cadenya/models/objective_event.rb', line 17 required :metadata, -> { Cadenya::OperationMetadata } |
#started_at ⇒ Time? (readonly)
Returns the value of attribute started_at.
30 31 32 |
# File 'sig/cadenya/models/objective_event.rbs', line 30 def started_at @started_at end |
Instance Method Details
#duration= ⇒ String (readonly)
28 |
# File 'sig/cadenya/models/objective_event.rbs', line 28
def duration=: (String) -> String
|
#started_at= ⇒ Time (readonly)
32 |
# File 'sig/cadenya/models/objective_event.rbs', line 32
def started_at=: (Time) -> Time
|
#to_hash ⇒ {
43 |
# File 'sig/cadenya/models/objective_event.rbs', line 43
def to_hash: -> {
|