Class: Hutch::ConsumerMsg

Inherits:
Object
  • Object
show all
Defined in:
lib/hutch/patch/worker.rb

Overview

Consumer Message wrap rabbitmq message infomation

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#consumerObject (readonly)

Returns the value of attribute consumer.



93
94
95
# File 'lib/hutch/patch/worker.rb', line 93

def consumer
  @consumer
end

#delivery_infoObject (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

#payloadObject (readonly)

Returns the value of attribute payload.



93
94
95
# File 'lib/hutch/patch/worker.rb', line 93

def payload
  @payload
end

#propertiesObject (readonly)

Returns the value of attribute properties.



93
94
95
# File 'lib/hutch/patch/worker.rb', line 93

def properties
  @properties
end