Class: ManageIQ::Messaging::ReceivedMessage

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(sender, message, payload, headers, ack_ref, client) ⇒ ReceivedMessage

Returns a new instance of ReceivedMessage.



6
7
8
# File 'lib/manageiq/messaging/received_message.rb', line 6

def initialize(sender, message, payload, headers, ack_ref, client)
  @sender, @message, @payload, @headers, @ack_ref, @client = sender, message, payload, headers, ack_ref, client
end

Instance Attribute Details

#ack_refObject

Returns the value of attribute ack_ref.



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

def ack_ref
  @ack_ref
end

#clientObject

Returns the value of attribute client.



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

def client
  @client
end

#headersObject

Returns the value of attribute headers.



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

def headers
  @headers
end

#messageObject

Returns the value of attribute message.



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

def message
  @message
end

#payloadObject

Returns the value of attribute payload.



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

def payload
  @payload
end

#senderObject

Returns the value of attribute sender.



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

def sender
  @sender
end

Instance Method Details

#ackObject



10
11
12
# File 'lib/manageiq/messaging/received_message.rb', line 10

def ack
  client.ack(ack_ref)
end