Class: Katello::Messaging::ReceivedMessage
- Inherits:
-
Object
- Object
- Katello::Messaging::ReceivedMessage
- Defined in:
- app/lib/katello/messaging/received_message.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#headers ⇒ Object
readonly
Returns the value of attribute headers.
Instance Method Summary collapse
-
#initialize(body:, headers: {}) ⇒ ReceivedMessage
constructor
A new instance of ReceivedMessage.
Constructor Details
#initialize(body:, headers: {}) ⇒ ReceivedMessage
6 7 8 9 |
# File 'app/lib/katello/messaging/received_message.rb', line 6 def initialize(body:, headers: {}) @body = body @headers = headers end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
4 5 6 |
# File 'app/lib/katello/messaging/received_message.rb', line 4 def body @body end |
#headers ⇒ Object (readonly)
Returns the value of attribute headers.
4 5 6 |
# File 'app/lib/katello/messaging/received_message.rb', line 4 def headers @headers end |