Class: WebSocket::Driver::CloseEvent

Inherits:
Struct
  • Object
show all
Defined in:
lib/websocket/driver.rb

Instance Attribute Summary collapse

Instance Attribute Details

#codeObject

Returns the value of attribute code

Returns:

  • (Object)

    the current value of code



43
44
45
# File 'lib/websocket/driver.rb', line 43

def code
  @code
end

#reasonObject

Returns the value of attribute reason

Returns:

  • (Object)

    the current value of reason



43
44
45
# File 'lib/websocket/driver.rb', line 43

def reason
  @reason
end