Method: MagicPipe::Envelope#initialize
- Defined in:
- lib/magic_pipe/envelope.rb
#initialize(body:, topic:, producer:, time:, mime:) ⇒ Envelope
Returns a new instance of Envelope.
3 4 5 6 7 8 9 |
# File 'lib/magic_pipe/envelope.rb', line 3 def initialize(body:, topic:, producer:, time:, mime:) @body = body @topic = topic @producer = producer @time = time.to_i @mime = mime end |