Class: JackRabbit::MessageHeader

Inherits:
Object
  • Object
show all
Defined in:
lib/jack_rabbit/message_header.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#metadataObject (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_typeObject



9
10
11
# File 'lib/jack_rabbit/message_header.rb', line 9

def content_type
  @metadata.properties.content_type
end