class WampRails::Command::Publish
Attributes
args[RW]
kwargs[RW]
options[RW]
topic[RW]
Public Class Methods
new(topic, args, kwargs, options, client)
click to toggle source
Calls superclass method
WampRails::Command::BaseCommand::new
# File lib/wamp_rails/commands/publish.rb, line 7 def initialize(topic, args, kwargs, options, client) super(client) self.topic = topic self.args = args self.kwargs = kwargs self.options = options end
Public Instance Methods
execute()
click to toggle source
# File lib/wamp_rails/commands/publish.rb, line 15 def execute session.publish(topic, args, kwargs, options) do |result, error, details| self.callback(result, error, details) end end