Class: Automux::Core::Tmux::Window::Data

Inherits:
Object
  • Object
show all
Defined in:
lib/automux/core/tmux/window.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#hooksObject (readonly)

Returns the value of attribute hooks.



24
25
26
# File 'lib/automux/core/tmux/window.rb', line 24

def hooks
  @hooks
end

#indexObject (readonly)

Returns the value of attribute index.



24
25
26
# File 'lib/automux/core/tmux/window.rb', line 24

def index
  @index
end

#is_optionalObject (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

#layoutObject (readonly)

Returns the value of attribute layout.



24
25
26
# File 'lib/automux/core/tmux/window.rb', line 24

def layout
  @layout
end

#nameObject (readonly)

Returns the value of attribute name.



24
25
26
# File 'lib/automux/core/tmux/window.rb', line 24

def name
  @name
end

#optObject (readonly)

Returns the value of attribute opt.



24
25
26
# File 'lib/automux/core/tmux/window.rb', line 24

def opt
  @opt
end

#optionsObject (readonly)

Returns the value of attribute options.



24
25
26
# File 'lib/automux/core/tmux/window.rb', line 24

def options
  @options
end

#panesObject (readonly)

Returns the value of attribute panes.



24
25
26
# File 'lib/automux/core/tmux/window.rb', line 24

def panes
  @panes
end

#rootObject (readonly)

Returns the value of attribute root.



24
25
26
# File 'lib/automux/core/tmux/window.rb', line 24

def root
  @root
end