Class: Pantry::Communication::SerializeMessage::ToZeromq
- Inherits:
-
Object
- Object
- Pantry::Communication::SerializeMessage::ToZeromq
- Defined in:
- lib/pantry/communication/serialize_message.rb
Instance Method Summary collapse
-
#initialize(message) ⇒ ToZeromq
constructor
A new instance of ToZeromq.
- #perform ⇒ Object
Constructor Details
#initialize(message) ⇒ ToZeromq
Returns a new instance of ToZeromq.
29 30 31 |
# File 'lib/pantry/communication/serialize_message.rb', line 29 def initialize() @message = end |
Instance Method Details
#perform ⇒ Object
33 34 35 36 37 38 39 |
# File 'lib/pantry/communication/serialize_message.rb', line 33 def perform [ @message.to || "", @message..to_json, ].flatten.compact end |