Class: A2A::Task::Status
- Inherits:
-
Object
- Object
- A2A::Task::Status
- Defined in:
- lib/a2a/task/status.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#state ⇒ Object
readonly
Returns the value of attribute state.
-
#timestamp ⇒ Object
readonly
Returns the value of attribute timestamp.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(state:, message: nil, timestamp: nil) ⇒ Status
constructor
A new instance of Status.
- #terminal? ⇒ Boolean
- #to_h ⇒ Object
Constructor Details
#initialize(state:, message: nil, timestamp: nil) ⇒ Status
Returns a new instance of Status.
8 9 10 11 12 |
# File 'lib/a2a/task/status.rb', line 8 def initialize(state:, message: nil, timestamp: nil) @state = state @message = @timestamp = end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
6 7 8 |
# File 'lib/a2a/task/status.rb', line 6 def @message end |
#state ⇒ Object (readonly)
Returns the value of attribute state.
6 7 8 |
# File 'lib/a2a/task/status.rb', line 6 def state @state end |
#timestamp ⇒ Object (readonly)
Returns the value of attribute timestamp.
6 7 8 |
# File 'lib/a2a/task/status.rb', line 6 def @timestamp end |