Class: Automux::Core::Tmux::Session::Data
- Inherits:
-
Object
- Object
- Automux::Core::Tmux::Session::Data
- Defined in:
- lib/automux/core/tmux/session.rb
Instance Attribute Summary collapse
-
#flags ⇒ Object
readonly
Returns the value of attribute flags.
-
#hooks ⇒ Object
readonly
Returns the value of attribute hooks.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#root ⇒ Object
readonly
Returns the value of attribute root.
-
#windows ⇒ Object
readonly
Returns the value of attribute windows.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ Data
constructor
A new instance of Data.
Constructor Details
#initialize(attributes) ⇒ Data
Returns a new instance of Data.
24 25 26 27 28 29 30 31 |
# File 'lib/automux/core/tmux/session.rb', line 24 def initialize(attributes) @windows = attributes['windows'] || [] @hooks = attributes['hooks'] || [] @options = attributes['options'] || [] @name = attributes['name'] @root = attributes['root'] || '.' @flags = attributes['flags'] end |
Instance Attribute Details
#flags ⇒ Object (readonly)
Returns the value of attribute flags.
22 23 24 |
# File 'lib/automux/core/tmux/session.rb', line 22 def flags @flags end |
#hooks ⇒ Object (readonly)
Returns the value of attribute hooks.
22 23 24 |
# File 'lib/automux/core/tmux/session.rb', line 22 def hooks @hooks end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
22 23 24 |
# File 'lib/automux/core/tmux/session.rb', line 22 def name @name end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
22 23 24 |
# File 'lib/automux/core/tmux/session.rb', line 22 def @options end |
#root ⇒ Object (readonly)
Returns the value of attribute root.
22 23 24 |
# File 'lib/automux/core/tmux/session.rb', line 22 def root @root end |
#windows ⇒ Object (readonly)
Returns the value of attribute windows.
22 23 24 |
# File 'lib/automux/core/tmux/session.rb', line 22 def windows @windows end |