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.



114
115
116
# File 'lib/faye/util/web_socket.rb', line 114

def bubbles
  @bubbles
end

#cancelableObject (readonly)

Returns the value of attribute cancelable.



114
115
116
# File 'lib/faye/util/web_socket.rb', line 114

def cancelable
  @cancelable
end

#current_targetObject

Returns the value of attribute current_target.



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

def current_target
  @current_target
end

#dataObject

Returns the value of attribute data.



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

def data
  @data
end

#event_phaseObject

Returns the value of attribute event_phase.



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

def event_phase
  @event_phase
end

#targetObject

Returns the value of attribute target.



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

def target
  @target
end

#typeObject (readonly)

Returns the value of attribute type.



114
115
116
# File 'lib/faye/util/web_socket.rb', line 114

def type
  @type
end

Instance Method Details

#init_event(event_type, can_bubble, cancelable) ⇒ Object



121
122
123
124
125
# File 'lib/faye/util/web_socket.rb', line 121

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

#prevent_defaultObject



130
131
# File 'lib/faye/util/web_socket.rb', line 130

def prevent_default
end

#stop_propagationObject



127
128
# File 'lib/faye/util/web_socket.rb', line 127

def stop_propagation
end