Class: Cucumber::Distrib::Events::Envelope

Inherits:
Event
  • Object
show all
Defined in:
lib/cucumber/distrib/events.rb

Overview

Object that mimic Cucumber::Event::StepActivated on Leader for reporters.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Event

event_id, #metadata

Constructor Details

#initialize(event) ⇒ Envelope

Returns a new instance of Envelope.



165
166
167
168
# File 'lib/cucumber/distrib/events.rb', line 165

def initialize(event)
  super()
  @envelope = event.is_a?(::Cucumber::Messages::Envelope) ? event : event.envelope
end

Instance Attribute Details

#envelopeObject (readonly)

Returns the value of attribute envelope.



163
164
165
# File 'lib/cucumber/distrib/events.rb', line 163

def envelope
  @envelope
end