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



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

def code
  @code
end

#reasonObject

Returns the value of attribute reason

Returns:

  • (Object)

    the current value of reason



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

def reason
  @reason
end