Class: ITermCLI::SessionManager::Session

Inherits:
Object
  • Object
show all
Defined in:
lib/iterm_cli/session_manager.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes) ⇒ Session

Returns a new instance of Session.



9
10
11
12
13
# File 'lib/iterm_cli/session_manager.rb', line 9

def initialize(attributes)
  attributes.each do |k, v|
    send("#{k}=", v)
  end
end

Instance Attribute Details

#commandObject

Returns the value of attribute command.



6
7
8
# File 'lib/iterm_cli/session_manager.rb', line 6

def command
  @command
end

#killObject

Returns the value of attribute kill.



6
7
8
# File 'lib/iterm_cli/session_manager.rb', line 6

def kill
  @kill
end

#nameObject

Returns the value of attribute name.



6
7
8
# File 'lib/iterm_cli/session_manager.rb', line 6

def name
  @name
end