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.



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_keyObject

Returns the value of attribute accept_key.



147
148
149
# File 'lib/tep/websocket/handshake.rb', line 147

def accept_key
  @accept_key
end

#protocolsObject

Returns the value of attribute protocols.



147
148
149
# File 'lib/tep/websocket/handshake.rb', line 147

def protocols
  @protocols
end

#reasonObject

Returns the value of attribute reason.



147
148
149
# File 'lib/tep/websocket/handshake.rb', line 147

def reason
  @reason
end

#validObject

Returns the value of attribute valid.



147
148
149
# File 'lib/tep/websocket/handshake.rb', line 147

def valid
  @valid
end