Class: CottonTail::Request

Inherits:
Struct
  • Object
show all
Defined in:
lib/cotton_tail.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#delivery_infoObject

Returns the value of attribute delivery_info



15
16
17
# File 'lib/cotton_tail.rb', line 15

def delivery_info
  @delivery_info
end

#payloadObject

Returns the value of attribute payload



15
16
17
# File 'lib/cotton_tail.rb', line 15

def payload
  @payload
end

#propertiesObject

Returns the value of attribute properties



15
16
17
# File 'lib/cotton_tail.rb', line 15

def properties
  @properties
end

Instance Method Details

#channelObject



24
25
26
# File 'lib/cotton_tail.rb', line 24

def channel
  delivery_info[:channel]
end

#delivery_tagObject



20
21
22
# File 'lib/cotton_tail.rb', line 20

def delivery_tag
  delivery_info[:delivery_tag]
end

#routing_keyObject



16
17
18
# File 'lib/cotton_tail.rb', line 16

def routing_key
  delivery_info[:routing_key]
end