Class: Tep::WebSocket::Handshake::Result
- Inherits:
-
Object
- Object
- Tep::WebSocket::Handshake::Result
- Defined in:
- lib/tep/websocket/handshake.rb
Instance Attribute Summary collapse
-
#accept_key ⇒ Object
Returns the value of attribute accept_key.
-
#protocols ⇒ Object
Returns the value of attribute protocols.
-
#reason ⇒ Object
Returns the value of attribute reason.
-
#valid ⇒ Object
Returns the value of attribute valid.
Instance Method Summary collapse
-
#initialize ⇒ Result
constructor
A new instance of Result.
Constructor Details
#initialize ⇒ Result
Returns a new instance of Result.
149 150 151 152 153 154 155 |
# File 'lib/tep/websocket/handshake.rb', line 149 def initialize @valid = false @reason = "" @accept_key = "" @protocols = [""] @protocols.delete_at(0) end |
Instance Attribute Details
#accept_key ⇒ Object
Returns the value of attribute accept_key.
147 148 149 |
# File 'lib/tep/websocket/handshake.rb', line 147 def accept_key @accept_key end |
#protocols ⇒ Object
Returns the value of attribute protocols.
147 148 149 |
# File 'lib/tep/websocket/handshake.rb', line 147 def protocols @protocols end |
#reason ⇒ Object
Returns the value of attribute reason.
147 148 149 |
# File 'lib/tep/websocket/handshake.rb', line 147 def reason @reason end |
#valid ⇒ Object
Returns the value of attribute valid.
147 148 149 |
# File 'lib/tep/websocket/handshake.rb', line 147 def valid @valid end |