Class: Polyn::Testing::MockMsg

Inherits:
Object
  • Object
show all
Defined in:
lib/polyn/testing/mock_msg.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(opts = {}) ⇒ MockMsg

Returns a new instance of MockMsg.



6
7
8
9
10
11
# File 'lib/polyn/testing/mock_msg.rb', line 6

def initialize(opts = {})
  @subject = opts[:subject]
  @reply   = opts[:reply]
  @data    = opts[:data]
  @header  = opts[:header]
end

Instance Attribute Details

#dataObject

Returns the value of attribute data.



13
14
15
# File 'lib/polyn/testing/mock_msg.rb', line 13

def data
  @data
end

#headerObject

Returns the value of attribute header.



13
14
15
# File 'lib/polyn/testing/mock_msg.rb', line 13

def header
  @header
end

#replyObject

Returns the value of attribute reply.



13
14
15
# File 'lib/polyn/testing/mock_msg.rb', line 13

def reply
  @reply
end

#subjectObject

Returns the value of attribute subject.



13
14
15
# File 'lib/polyn/testing/mock_msg.rb', line 13

def subject
  @subject
end

Instance Method Details

#ack(**params) ⇒ Object



15
# File 'lib/polyn/testing/mock_msg.rb', line 15

def ack(**params); end

#ack_sync(**params) ⇒ Object



17
# File 'lib/polyn/testing/mock_msg.rb', line 17

def ack_sync(**params); end

#in_progress(**params) ⇒ Object



23
# File 'lib/polyn/testing/mock_msg.rb', line 23

def in_progress(**params); end

#metadataObject



25
# File 'lib/polyn/testing/mock_msg.rb', line 25

def ; end

#nak(**params) ⇒ Object



19
# File 'lib/polyn/testing/mock_msg.rb', line 19

def nak(**params); end

#term(**params) ⇒ Object



21
# File 'lib/polyn/testing/mock_msg.rb', line 21

def term(**params); end