Sha256: bb49bd0f6f69604a677b031a8ddbb98596ef39ac0e23f6872cbffccffd6ee492

Contents?: true

Size: 416 Bytes

Versions: 8

Compression:

Stored size: 416 Bytes

Contents

# frozen_string_literal: true

# Test events response
class EventTest
  def actions
    lambda do |reason, payload|
      RubyRabbitmqJanus::Tools::Log.instance.info "Reason : #{reason}"
      RubyRabbitmqJanus::Tools::Log.instance.info "Payload : #{payload}"
    end
  end
end

# Initialize listener
actions = EventTest.new.actions
@event = RubyRabbitmqJanus::Process::Concurrencies::Event.new
@event.run(&actions)

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ruby_rabbitmq_janus-3.0.0.pre.336 spec/config/initializer.rb
ruby_rabbitmq_janus-3.0.0.pre.335 spec/config/initializer.rb
ruby_rabbitmq_janus-3.0.0.pre.334 spec/config/initializer.rb
ruby_rabbitmq_janus-3.0.0.pre.330 spec/config/initializer.rb
ruby_rabbitmq_janus-3.0.0.pre.328 spec/config/initializer.rb
ruby_rabbitmq_janus-3.0.0.pre.327 spec/config/initializer.rb
ruby_rabbitmq_janus-2.7.2 spec/config/initializer.rb
ruby_rabbitmq_janus-2.7.2.pre.322 spec/config/initializer.rb