Module: Evrone::Common::AMQP::Consumer::ClassMethods

Includes:
Evrone::Common::AMQP::Callbacks, Configuration, Publish, Subscribe, Logger
Defined in:
lib/evrone/common/amqp/consumer.rb,
lib/evrone/common/amqp/testing.rb

Instance Method Summary collapse

Methods included from Evrone::Common::AMQP::Callbacks

#run_callbacks

Methods included from Subscribe

#subscribe

Methods included from Publish

#publish, #serialize_message

Methods included from Configuration

#ack, #bind_options, #consumer_configuration, #consumer_name, #content_type, #headers, #model, #reset_consumer_configuration!, #routing_key

Instance Method Details

#configObject



52
53
54
# File 'lib/evrone/common/amqp/consumer.rb', line 52

def config
  Common::AMQP.config
end

#messagesObject



42
43
44
# File 'lib/evrone/common/amqp/testing.rb', line 42

def messages
  Testing.messages[exchange_name]
end

#messages_and_optionsObject



46
47
48
# File 'lib/evrone/common/amqp/testing.rb', line 46

def messages_and_options
  Testing.messages_and_options[exchange_name]
end

#sessionObject



48
49
50
# File 'lib/evrone/common/amqp/consumer.rb', line 48

def session
  Common::AMQP.session
end

#shutdownObject



44
45
46
# File 'lib/evrone/common/amqp/consumer.rb', line 44

def shutdown
  Common::AMQP.shutdown
end

#shutdown?Boolean

Returns:

  • (Boolean)


40
41
42
# File 'lib/evrone/common/amqp/consumer.rb', line 40

def shutdown?
  Common::AMQP.shutdown?
end