Class: Automux::Core::Tmux::Window::Data
- Inherits:
-
Object
- Object
- Automux::Core::Tmux::Window::Data
- Defined in:
- lib/automux/core/tmux/window.rb
Instance Attribute Summary collapse
-
#hooks ⇒ Object
readonly
Returns the value of attribute hooks.
-
#index ⇒ Object
readonly
Returns the value of attribute index.
-
#is_optional ⇒ Object
readonly
Returns the value of attribute is_optional.
-
#layout ⇒ Object
readonly
Returns the value of attribute layout.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#opt ⇒ Object
readonly
Returns the value of attribute opt.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#panes ⇒ Object
readonly
Returns the value of attribute panes.
-
#root ⇒ Object
readonly
Returns the value of attribute root.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ Data
constructor
A new instance of Data.
Constructor Details
#initialize(attributes) ⇒ Data
Returns a new instance of Data.
26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/automux/core/tmux/window.rb', line 26 def initialize(attributes) @is_optional = attributes.has_key?('opt') @opt = attributes['opt'] @index = attributes['index'] @name = attributes['name'] @root = attributes['root'] @layout = attributes['layout'] @hooks = attributes['hooks'] || [] @options = attributes['options'] || [] @panes = attributes['panes'] end |
Instance Attribute Details
#hooks ⇒ Object (readonly)
Returns the value of attribute hooks.
24 25 26 |
# File 'lib/automux/core/tmux/window.rb', line 24 def hooks @hooks end |
#index ⇒ Object (readonly)
Returns the value of attribute index.
24 25 26 |
# File 'lib/automux/core/tmux/window.rb', line 24 def index @index end |
#is_optional ⇒ Object (readonly)
Returns the value of attribute is_optional.
24 25 26 |
# File 'lib/automux/core/tmux/window.rb', line 24 def is_optional @is_optional end |
#layout ⇒ Object (readonly)
Returns the value of attribute layout.
24 25 26 |
# File 'lib/automux/core/tmux/window.rb', line 24 def layout @layout end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
24 25 26 |
# File 'lib/automux/core/tmux/window.rb', line 24 def name @name end |
#opt ⇒ Object (readonly)
Returns the value of attribute opt.
24 25 26 |
# File 'lib/automux/core/tmux/window.rb', line 24 def opt @opt end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
24 25 26 |
# File 'lib/automux/core/tmux/window.rb', line 24 def @options end |
#panes ⇒ Object (readonly)
Returns the value of attribute panes.
24 25 26 |
# File 'lib/automux/core/tmux/window.rb', line 24 def panes @panes end |
#root ⇒ Object (readonly)
Returns the value of attribute root.
24 25 26 |
# File 'lib/automux/core/tmux/window.rb', line 24 def root @root end |