module Loco::WsConnectionIdentifier
Public Instance Methods
call(resource)
click to toggle source
# File lib/loco/ws_connection_identifier.rb, line 7 def call(resource) case resource when String then resource when Class then resource.name.downcase else "#{resource.class.name.downcase}:#{resource.id}" end end