Class: Tep::WebSocket::Handshake::Result

Inherits:
Object
  • Object
show all
Defined in:
lib/tep/websocket/handshake.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeResult

Returns a new instance of Result.



155
156
157
158
159
160
161
# File 'lib/tep/websocket/handshake.rb', line 155

def initialize
  @valid      = false
  @reason     = ""
  @accept_key = ""
  @protocols  = [""]
  @protocols.delete_at(0)
end

Instance Attribute Details

#accept_keyObject

Returns the value of attribute accept_key.



153
154
155
# File 'lib/tep/websocket/handshake.rb', line 153

def accept_key
  @accept_key
end

#protocolsObject

Returns the value of attribute protocols.



153
154
155
# File 'lib/tep/websocket/handshake.rb', line 153

def protocols
  @protocols
end

#reasonObject

Returns the value of attribute reason.



153
154
155
# File 'lib/tep/websocket/handshake.rb', line 153

def reason
  @reason
end

#validObject

Returns the value of attribute valid.



153
154
155
# File 'lib/tep/websocket/handshake.rb', line 153

def valid
  @valid
end