Class: Katello::Messaging::ReceivedMessage

Inherits:
Object
  • Object
show all
Defined in:
app/lib/katello/messaging/received_message.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#bodyObject (readonly)

Returns the value of attribute body.



4
5
6
# File 'app/lib/katello/messaging/received_message.rb', line 4

def body
  @body
end

#headersObject (readonly)

Returns the value of attribute headers.



4
5
6
# File 'app/lib/katello/messaging/received_message.rb', line 4

def headers
  @headers
end