Class: Automux::Core::Tmux::Session::Data

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#flagsObject (readonly)

Returns the value of attribute flags.



22
23
24
# File 'lib/automux/core/tmux/session.rb', line 22

def flags
  @flags
end

#hooksObject (readonly)

Returns the value of attribute hooks.



22
23
24
# File 'lib/automux/core/tmux/session.rb', line 22

def hooks
  @hooks
end

#nameObject (readonly)

Returns the value of attribute name.



22
23
24
# File 'lib/automux/core/tmux/session.rb', line 22

def name
  @name
end

#optionsObject (readonly)

Returns the value of attribute options.



22
23
24
# File 'lib/automux/core/tmux/session.rb', line 22

def options
  @options
end

#rootObject (readonly)

Returns the value of attribute root.



22
23
24
# File 'lib/automux/core/tmux/session.rb', line 22

def root
  @root
end

#windowsObject (readonly)

Returns the value of attribute windows.



22
23
24
# File 'lib/automux/core/tmux/session.rb', line 22

def windows
  @windows
end