Class: Polyn::Testing::MockMsg
- Inherits:
-
Object
- Object
- Polyn::Testing::MockMsg
- Defined in:
- lib/polyn/testing/mock_msg.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#header ⇒ Object
Returns the value of attribute header.
-
#reply ⇒ Object
Returns the value of attribute reply.
-
#subject ⇒ Object
Returns the value of attribute subject.
Instance Method Summary collapse
- #ack(**params) ⇒ Object
- #ack_sync(**params) ⇒ Object
- #in_progress(**params) ⇒ Object
-
#initialize(opts = {}) ⇒ MockMsg
constructor
A new instance of MockMsg.
- #metadata ⇒ Object
- #nak(**params) ⇒ Object
- #term(**params) ⇒ Object
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
#data ⇒ Object
Returns the value of attribute data.
13 14 15 |
# File 'lib/polyn/testing/mock_msg.rb', line 13 def data @data end |
#header ⇒ Object
Returns the value of attribute header.
13 14 15 |
# File 'lib/polyn/testing/mock_msg.rb', line 13 def header @header end |
#reply ⇒ Object
Returns the value of attribute reply.
13 14 15 |
# File 'lib/polyn/testing/mock_msg.rb', line 13 def reply @reply end |
#subject ⇒ Object
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 |
#metadata ⇒ Object
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 |