Class: Kitsune::Kit::Tui::State
- Inherits:
-
Data
- Object
- Data
- Kitsune::Kit::Tui::State
- Defined in:
- lib/kitsune/kit/tui/state.rb
Instance Attribute Summary collapse
-
#environment ⇒ Object
readonly
Returns the value of attribute environment.
-
#logs ⇒ Object
readonly
Returns the value of attribute logs.
-
#modal ⇒ Object
readonly
Returns the value of attribute modal.
-
#notification ⇒ Object
readonly
Returns the value of attribute notification.
-
#operations ⇒ Object
readonly
Returns the value of attribute operations.
-
#resources ⇒ Object
readonly
Returns the value of attribute resources.
-
#result ⇒ Object
readonly
Returns the value of attribute result.
-
#running ⇒ Object
readonly
Returns the value of attribute running.
-
#screen ⇒ Object
readonly
Returns the value of attribute screen.
-
#scroll_offset ⇒ Object
readonly
Returns the value of attribute scroll_offset.
-
#selected_resource ⇒ Object
readonly
Returns the value of attribute selected_resource.
-
#terminal_size ⇒ Object
readonly
Returns the value of attribute terminal_size.
Class Method Summary collapse
Instance Attribute Details
#environment ⇒ Object (readonly)
Returns the value of attribute environment
6 7 8 |
# File 'lib/kitsune/kit/tui/state.rb', line 6 def environment @environment end |
#logs ⇒ Object (readonly)
Returns the value of attribute logs
6 7 8 |
# File 'lib/kitsune/kit/tui/state.rb', line 6 def logs @logs end |
#modal ⇒ Object (readonly)
Returns the value of attribute modal
6 7 8 |
# File 'lib/kitsune/kit/tui/state.rb', line 6 def modal @modal end |
#notification ⇒ Object (readonly)
Returns the value of attribute notification
6 7 8 |
# File 'lib/kitsune/kit/tui/state.rb', line 6 def notification @notification end |
#operations ⇒ Object (readonly)
Returns the value of attribute operations
6 7 8 |
# File 'lib/kitsune/kit/tui/state.rb', line 6 def operations @operations end |
#resources ⇒ Object (readonly)
Returns the value of attribute resources
6 7 8 |
# File 'lib/kitsune/kit/tui/state.rb', line 6 def resources @resources end |
#result ⇒ Object (readonly)
Returns the value of attribute result
6 7 8 |
# File 'lib/kitsune/kit/tui/state.rb', line 6 def result @result end |
#running ⇒ Object (readonly)
Returns the value of attribute running
6 7 8 |
# File 'lib/kitsune/kit/tui/state.rb', line 6 def running @running end |
#screen ⇒ Object (readonly)
Returns the value of attribute screen
6 7 8 |
# File 'lib/kitsune/kit/tui/state.rb', line 6 def screen @screen end |
#scroll_offset ⇒ Object (readonly)
Returns the value of attribute scroll_offset
6 7 8 |
# File 'lib/kitsune/kit/tui/state.rb', line 6 def scroll_offset @scroll_offset end |
#selected_resource ⇒ Object (readonly)
Returns the value of attribute selected_resource
6 7 8 |
# File 'lib/kitsune/kit/tui/state.rb', line 6 def selected_resource @selected_resource end |
#terminal_size ⇒ Object (readonly)
Returns the value of attribute terminal_size
6 7 8 |
# File 'lib/kitsune/kit/tui/state.rb', line 6 def terminal_size @terminal_size end |
Class Method Details
.initial(environment:, terminal_size: [100, 30]) ⇒ Object
10 11 12 13 14 |
# File 'lib/kitsune/kit/tui/state.rb', line 10 def self.initial(environment:, terminal_size: [100, 30]) new(screen: :dashboard, environment: environment, resources: [], selected_resource: 0, operations: [], logs: [], modal: nil, notification: nil, running: false, terminal_size: terminal_size, result: nil, scroll_offset: 0) end |