Class: Kward::CLI::Tabs::TabRuntime
- Inherits:
-
Struct
- Object
- Struct
- Kward::CLI::Tabs::TabRuntime
- Defined in:
- lib/kward/cli/tabs.rb
Instance Attribute Summary collapse
-
#agent ⇒ Object
Returns the value of attribute agent.
-
#answer ⇒ Object
Returns the value of attribute answer.
-
#cancellation ⇒ Object
Returns the value of attribute cancellation.
-
#diff ⇒ Object
Returns the value of attribute diff.
-
#error ⇒ Object
Returns the value of attribute error.
-
#error_reported ⇒ Object
Returns the value of attribute error_reported.
-
#event_history ⇒ Object
Returns the value of attribute event_history.
-
#label ⇒ Object
Returns the value of attribute label.
-
#markdown_chunks ⇒ Object
Returns the value of attribute markdown_chunks.
-
#pending_question ⇒ Object
Returns the value of attribute pending_question.
-
#queued_inputs ⇒ Object
Returns the value of attribute queued_inputs.
-
#seen_events ⇒ Object
Returns the value of attribute seen_events.
-
#session ⇒ Object
Returns the value of attribute session.
-
#shell ⇒ Object
Returns the value of attribute shell.
-
#snapshot ⇒ Object
Returns the value of attribute snapshot.
-
#status ⇒ Object
Returns the value of attribute status.
-
#steering ⇒ Object
Returns the value of attribute steering.
-
#stream_state ⇒ Object
Returns the value of attribute stream_state.
-
#thread ⇒ Object
Returns the value of attribute thread.
-
#unread ⇒ Object
Returns the value of attribute unread.
Instance Method Summary collapse
Instance Attribute Details
#agent ⇒ Object
Returns the value of attribute agent
10 11 12 |
# File 'lib/kward/cli/tabs.rb', line 10 def agent @agent end |
#answer ⇒ Object
Returns the value of attribute answer
10 11 12 |
# File 'lib/kward/cli/tabs.rb', line 10 def answer @answer end |
#cancellation ⇒ Object
Returns the value of attribute cancellation
10 11 12 |
# File 'lib/kward/cli/tabs.rb', line 10 def cancellation @cancellation end |
#diff ⇒ Object
Returns the value of attribute diff
10 11 12 |
# File 'lib/kward/cli/tabs.rb', line 10 def diff @diff end |
#error ⇒ Object
Returns the value of attribute error
10 11 12 |
# File 'lib/kward/cli/tabs.rb', line 10 def error @error end |
#error_reported ⇒ Object
Returns the value of attribute error_reported
10 11 12 |
# File 'lib/kward/cli/tabs.rb', line 10 def error_reported @error_reported end |
#event_history ⇒ Object
Returns the value of attribute event_history
10 11 12 |
# File 'lib/kward/cli/tabs.rb', line 10 def event_history @event_history end |
#label ⇒ Object
Returns the value of attribute label
10 11 12 |
# File 'lib/kward/cli/tabs.rb', line 10 def label @label end |
#markdown_chunks ⇒ Object
Returns the value of attribute markdown_chunks
10 11 12 |
# File 'lib/kward/cli/tabs.rb', line 10 def markdown_chunks @markdown_chunks end |
#pending_question ⇒ Object
Returns the value of attribute pending_question
10 11 12 |
# File 'lib/kward/cli/tabs.rb', line 10 def pending_question @pending_question end |
#queued_inputs ⇒ Object
Returns the value of attribute queued_inputs
10 11 12 |
# File 'lib/kward/cli/tabs.rb', line 10 def queued_inputs @queued_inputs end |
#seen_events ⇒ Object
Returns the value of attribute seen_events
10 11 12 |
# File 'lib/kward/cli/tabs.rb', line 10 def seen_events @seen_events end |
#session ⇒ Object
Returns the value of attribute session
10 11 12 |
# File 'lib/kward/cli/tabs.rb', line 10 def session @session end |
#shell ⇒ Object
Returns the value of attribute shell
10 11 12 |
# File 'lib/kward/cli/tabs.rb', line 10 def shell @shell end |
#snapshot ⇒ Object
Returns the value of attribute snapshot
10 11 12 |
# File 'lib/kward/cli/tabs.rb', line 10 def snapshot @snapshot end |
#status ⇒ Object
Returns the value of attribute status
10 11 12 |
# File 'lib/kward/cli/tabs.rb', line 10 def status @status end |
#steering ⇒ Object
Returns the value of attribute steering
10 11 12 |
# File 'lib/kward/cli/tabs.rb', line 10 def steering @steering end |
#stream_state ⇒ Object
Returns the value of attribute stream_state
10 11 12 |
# File 'lib/kward/cli/tabs.rb', line 10 def stream_state @stream_state end |
#thread ⇒ Object
Returns the value of attribute thread
10 11 12 |
# File 'lib/kward/cli/tabs.rb', line 10 def thread @thread end |
#unread ⇒ Object
Returns the value of attribute unread
10 11 12 |
# File 'lib/kward/cli/tabs.rb', line 10 def unread @unread end |
Instance Method Details
#idle? ⇒ Boolean
37 38 39 |
# File 'lib/kward/cli/tabs.rb', line 37 def idle? !running? end |
#record_event(event) ⇒ Object
41 42 43 |
# File 'lib/kward/cli/tabs.rb', line 41 def record_event(event) event_history << event end |
#running? ⇒ Boolean
33 34 35 |
# File 'lib/kward/cli/tabs.rb', line 33 def running? %w[queued running waiting_for_question].include?(status.to_s) end |