class WebsocketRails::EventRoutingError
Attributes
controller[R]
event[R]
method[R]
Public Class Methods
new(event, controller, method)
click to toggle source
# File lib/websocket-rails.rb, line 63 def initialize(event, controller, method) @event = event @controller = controller end
Public Instance Methods
to_json()
click to toggle source
Calls superclass method
# File lib/websocket-rails.rb, line 75 def to_json super({ :error => "EventRoutingError", :event => event.name, :method => method, :reason => "Controller #{controller.class} does not respond to #{method}" }) end
to_s()
click to toggle source
# File lib/websocket-rails.rb, line 68 def to_s out = "Routing Error:\n" out << "Event: #{event.name}\n" out << "Controller #{controller.class} does not respond to #{method}" out end