Class: Faye::WebSocket::Event

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

Constant Summary

CAPTURING_PHASE =
1
AT_TARGET =
2
BUBBLING_PHASE =
3

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Instance Attribute Details

- (Object) bubbles (readonly)

Returns the value of attribute bubbles



101
102
103
# File 'lib/faye/util/web_socket.rb', line 101

def bubbles
  @bubbles
end

- (Object) cancelable (readonly)

Returns the value of attribute cancelable



101
102
103
# File 'lib/faye/util/web_socket.rb', line 101

def cancelable
  @cancelable
end

- (Object) current_target

Returns the value of attribute current_target



102
103
104
# File 'lib/faye/util/web_socket.rb', line 102

def current_target
  @current_target
end

- (Object) data

Returns the value of attribute data



102
103
104
# File 'lib/faye/util/web_socket.rb', line 102

def data
  @data
end

- (Object) event_phase

Returns the value of attribute event_phase



102
103
104
# File 'lib/faye/util/web_socket.rb', line 102

def event_phase
  @event_phase
end

- (Object) target

Returns the value of attribute target



102
103
104
# File 'lib/faye/util/web_socket.rb', line 102

def target
  @target
end

- (Object) type (readonly)

Returns the value of attribute type



101
102
103
# File 'lib/faye/util/web_socket.rb', line 101

def type
  @type
end

Instance Method Details

- (Object) init_event(event_type, can_bubble, cancelable)



108
109
110
111
112
# File 'lib/faye/util/web_socket.rb', line 108

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

- (Object) prevent_default



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

def prevent_default
end

- (Object) stop_propagation



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

def stop_propagation
end