Class: ITermCLI::SessionManager::Session
- Inherits:
-
Object
- Object
- ITermCLI::SessionManager::Session
- Defined in:
- lib/iterm_cli/session_manager.rb
Instance Attribute Summary collapse
-
#command ⇒ Object
readonly
Returns the value of attribute command.
-
#kill ⇒ Object
readonly
Returns the value of attribute kill.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ Session
constructor
A new instance of Session.
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
#command ⇒ Object
Returns the value of attribute command.
6 7 8 |
# File 'lib/iterm_cli/session_manager.rb', line 6 def command @command end |
#kill ⇒ Object
Returns the value of attribute kill.
6 7 8 |
# File 'lib/iterm_cli/session_manager.rb', line 6 def kill @kill end |
#name ⇒ Object
Returns the value of attribute name.
6 7 8 |
# File 'lib/iterm_cli/session_manager.rb', line 6 def name @name end |