Class: RFlow::MessageCollectingConnection
- Inherits:
-
Connection
- Object
- Connection
- RFlow::MessageCollectingConnection
- Defined in:
- lib/rflow/connection.rb
Overview
Primarily for testing purposes. Captures whatever messages are sent on it.
Instance Attribute Summary collapse
-
#messages ⇒ Object
Returns the value of attribute messages.
Attributes inherited from Connection
#config, #name, #options, #recv_callback, #uuid
Instance Method Summary collapse
-
#initialize ⇒ MessageCollectingConnection
constructor
A new instance of MessageCollectingConnection.
- #send_message(message) ⇒ Object
Methods inherited from Connection
build, #connect_input!, #connect_output!, #input_port_key, #output_port_key
Constructor Details
#initialize ⇒ MessageCollectingConnection
Returns a new instance of MessageCollectingConnection.
71 72 73 74 |
# File 'lib/rflow/connection.rb', line 71 def initialize super(RFlow::Configuration::NullConnectionConfiguration.new) = [] end |
Instance Attribute Details
#messages ⇒ Object
Returns the value of attribute messages.
69 70 71 |
# File 'lib/rflow/connection.rb', line 69 def end |
Instance Method Details
#send_message(message) ⇒ Object
76 77 78 |
# File 'lib/rflow/connection.rb', line 76 def () << end |