class Object
Public Class Methods
perform_async(method, *args)
click to toggle source
# File lib/rabbitmq/async/initialize.rb, line 8 def self.perform_async(method, *args) RabbitmqHelper.publish_event({"object" => self.name, "method" => method, "arg_list" => args}, $consumer_config["consumer"]["#{self.table_name.singularize }"]["self_exchange"], $consumer_config["consumer"]["#{self.table_name.singularize}"]["routing_key"]) self end
Public Instance Methods
perform_async(method, *args)
click to toggle source
# File lib/rabbitmq/async/initialize.rb, line 3 def perform_async(method, *args) RabbitmqHelper.publish_event({"object" => self, "method" => method, "arg_list" => args, "object_method" => true, "class" => self.class.name}, $consumer_config["consumer"]["#{self.class.table_name.singularize }"]["self_exchange"], $consumer_config["consumer"]["#{self.class.table_name.singularize }"]["routing_key"]) self end