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



53
54
55
# File 'lib/websocket/driver.rb', line 53

def code
  @code
end

#reasonObject

Returns the value of attribute reason

Returns:

  • (Object)

    the current value of reason



53
54
55
# File 'lib/websocket/driver.rb', line 53

def reason
  @reason
end