Class: Pair::Session
- Inherits:
-
Object
- Object
- Pair::Session
- Defined in:
- lib/pair/session.rb,
lib/pair/session/tmux.rb,
lib/pair/session/tunnel.rb,
lib/pair/session/hosted_session.rb,
lib/pair/session/authorized_keys_file.rb
Direct Known Subclasses
Defined Under Namespace
Classes: AuthorizedKeysFile, HostedSession, Tmux, Tunnel
Instance Attribute Summary collapse
-
#host ⇒ Object
readonly
Returns the value of attribute host.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#participants ⇒ Object
readonly
Returns the value of attribute participants.
-
#viewers ⇒ Object
readonly
Returns the value of attribute viewers.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Session
constructor
A new instance of Session.
Constructor Details
#initialize(options = {}) ⇒ Session
Returns a new instance of Session.
11 12 13 |
# File 'lib/pair/session.rb', line 11 def initialize( = {}) self. = end |
Instance Attribute Details
#host ⇒ Object
Returns the value of attribute host.
8 9 10 |
# File 'lib/pair/session.rb', line 8 def host @host end |
#name ⇒ Object
Returns the value of attribute name.
8 9 10 |
# File 'lib/pair/session.rb', line 8 def name @name end |
#options ⇒ Object
Returns the value of attribute options.
8 9 10 |
# File 'lib/pair/session.rb', line 8 def @options end |
#participants ⇒ Object
Returns the value of attribute participants.
8 9 10 |
# File 'lib/pair/session.rb', line 8 def participants @participants end |
#viewers ⇒ Object
Returns the value of attribute viewers.
8 9 10 |
# File 'lib/pair/session.rb', line 8 def viewers @viewers end |
Class Method Details
.host(options) ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/pair/session/hosted_session.rb', line 3 def self.host() session = HostedSession.new() at_exit { session.stop! } session.start! session.stop! end |