Class: Faye::WebSocket::Event

Inherits:
Object
  • Object
show all
Defined in:
lib/faye/util/web_socket.rb

Constant Summary collapse

CAPTURING_PHASE =
1
AT_TARGET =
2
BUBBLING_PHASE =
3

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#bubblesObject (readonly)

Returns the value of attribute bubbles.



104
105
106
# File 'lib/faye/util/web_socket.rb', line 104

def bubbles
  @bubbles
end

#cancelableObject (readonly)

Returns the value of attribute cancelable.



104
105
106
# File 'lib/faye/util/web_socket.rb', line 104

def cancelable
  @cancelable
end

#current_targetObject

Returns the value of attribute current_target.



105
106
107
# File 'lib/faye/util/web_socket.rb', line 105

def current_target
  @current_target
end

#dataObject

Returns the value of attribute data.



105
106
107
# File 'lib/faye/util/web_socket.rb', line 105

def data
  @data
end

#event_phaseObject

Returns the value of attribute event_phase.



105
106
107
# File 'lib/faye/util/web_socket.rb', line 105

def event_phase
  @event_phase
end

#targetObject

Returns the value of attribute target.



105
106
107
# File 'lib/faye/util/web_socket.rb', line 105

def target
  @target
end

#typeObject (readonly)

Returns the value of attribute type.



104
105
106
# File 'lib/faye/util/web_socket.rb', line 104

def type
  @type
end

Instance Method Details

#init_event(event_type, can_bubble, cancelable) ⇒ Object



111
112
113
114
115
# File 'lib/faye/util/web_socket.rb', line 111

def init_event(event_type, can_bubble, cancelable)
  @type       = event_type
  @bubbles    = can_bubble
  @cancelable = cancelable
end

#prevent_defaultObject



120
121
# File 'lib/faye/util/web_socket.rb', line 120

def prevent_default
end

#stop_propagationObject



117
118
# File 'lib/faye/util/web_socket.rb', line 117

def stop_propagation
end