Class: ReverseTunnel::Message::OpenSession
- Inherits:
-
ReverseTunnel::Message
- Object
- ReverseTunnel::Message
- ReverseTunnel::Message::OpenSession
- Defined in:
- lib/reverse-tunnel/message.rb
Instance Attribute Summary collapse
-
#session_id ⇒ Object
Returns the value of attribute session_id.
Instance Method Summary collapse
-
#initialize(session_id = nil) ⇒ OpenSession
constructor
A new instance of OpenSession.
- #load(payload) ⇒ Object
- #payload ⇒ Object
Methods inherited from ReverseTunnel::Message
create, #pack, #type, type, type_id, #type_id, types, unpack
Constructor Details
#initialize(session_id = nil) ⇒ OpenSession
Returns a new instance of OpenSession.
92 93 94 |
# File 'lib/reverse-tunnel/message.rb', line 92 def initialize(session_id = nil) self.session_id = session_id end |
Instance Attribute Details
#session_id ⇒ Object
Returns the value of attribute session_id.
90 91 92 |
# File 'lib/reverse-tunnel/message.rb', line 90 def session_id @session_id end |
Instance Method Details
#load(payload) ⇒ Object
100 101 102 |
# File 'lib/reverse-tunnel/message.rb', line 100 def load(payload) self.session_id = payload.first end |
#payload ⇒ Object
96 97 98 |
# File 'lib/reverse-tunnel/message.rb', line 96 def payload [session_id] end |