Class: JackRabbit::MessageHeader
- Inherits:
-
Object
- Object
- JackRabbit::MessageHeader
- Defined in:
- lib/jack_rabbit/message_header.rb
Instance Attribute Summary collapse
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
Instance Method Summary collapse
- #content_type ⇒ Object
-
#initialize(metadata) ⇒ MessageHeader
constructor
A new instance of MessageHeader.
Constructor Details
#initialize(metadata) ⇒ MessageHeader
Returns a new instance of MessageHeader.
5 6 7 |
# File 'lib/jack_rabbit/message_header.rb', line 5 def initialize() @metadata = end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args, &block) ⇒ Object (private)
15 16 17 |
# File 'lib/jack_rabbit/message_header.rb', line 15 def method_missing(method, *args, &block) .send(method, *args, &block) end |
Instance Attribute Details
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata.
3 4 5 |
# File 'lib/jack_rabbit/message_header.rb', line 3 def @metadata end |
Instance Method Details
#content_type ⇒ Object
9 10 11 |
# File 'lib/jack_rabbit/message_header.rb', line 9 def content_type @metadata.properties.content_type end |