Class: Hutch::ConsumerMsg
- Inherits:
-
Object
- Object
- Hutch::ConsumerMsg
- Defined in:
- lib/hutch/patch/worker.rb
Overview
Consumer Message wrap rabbitmq message infomation
Instance Attribute Summary collapse
-
#consumer ⇒ Object
readonly
Returns the value of attribute consumer.
-
#delivery_info ⇒ Object
readonly
Returns the value of attribute delivery_info.
-
#payload ⇒ Object
readonly
Returns the value of attribute payload.
-
#properties ⇒ Object
readonly
Returns the value of attribute properties.
Instance Method Summary collapse
-
#initialize(consumer, delivery_info, properties, payload) ⇒ ConsumerMsg
constructor
A new instance of ConsumerMsg.
Constructor Details
#initialize(consumer, delivery_info, properties, payload) ⇒ ConsumerMsg
Returns a new instance of ConsumerMsg.
95 96 97 98 99 100 |
# File 'lib/hutch/patch/worker.rb', line 95 def initialize(consumer, delivery_info, properties, payload) @consumer = consumer @delivery_info = delivery_info @properties = properties @payload = payload end |
Instance Attribute Details
#consumer ⇒ Object (readonly)
Returns the value of attribute consumer.
93 94 95 |
# File 'lib/hutch/patch/worker.rb', line 93 def consumer @consumer end |
#delivery_info ⇒ Object (readonly)
Returns the value of attribute delivery_info.
93 94 95 |
# File 'lib/hutch/patch/worker.rb', line 93 def delivery_info @delivery_info end |
#payload ⇒ Object (readonly)
Returns the value of attribute payload.
93 94 95 |
# File 'lib/hutch/patch/worker.rb', line 93 def payload @payload end |
#properties ⇒ Object (readonly)
Returns the value of attribute properties.
93 94 95 |
# File 'lib/hutch/patch/worker.rb', line 93 def properties @properties end |