class CottonTail::Request
Value object wrapper for Bunny Message
Attributes
delivery_info[R]
payload[R]
properties[R]
Public Class Methods
new(delivery_info, properties, payload)
click to toggle source
# File lib/cotton_tail/request.rb, line 10 def initialize(delivery_info, properties, payload) @delivery_info = delivery_info @properties = properties @payload = payload end
Public Instance Methods
==(other)
click to toggle source
# File lib/cotton_tail/request.rb, line 28 def ==(other) to_h == other.to_h end
to_a()
click to toggle source
# File lib/cotton_tail/request.rb, line 16 def to_a [delivery_info, properties, payload] end
to_h()
click to toggle source
# File lib/cotton_tail/request.rb, line 20 def to_h { delivery_info: delivery_info, properties: properties, payload: payload } end