class Vines::Cluster::UserProxy
Proxy User#update_from
calls to remote cluster nodes over redis pubsub channels.
Public Class Methods
new(cluster, session)
click to toggle source
Calls superclass method
# File lib/vines/cluster.rb, line 236 def initialize(cluster, session) super(jid: session['jid']) @cluster, @node = cluster, session['node'] end
Public Instance Methods
update_from(user)
click to toggle source
# File lib/vines/cluster.rb, line 241 def update_from(user) @cluster.update_user(@jid.bare, @node) end