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



46
47
48
# File 'lib/websocket/driver.rb', line 46

def code
  @code
end

#reasonObject

Returns the value of attribute reason

Returns:

  • (Object)

    the current value of reason



46
47
48
# File 'lib/websocket/driver.rb', line 46

def reason
  @reason
end