Class: Cucumber::Events::Envelope

Inherits:
Base
  • Object
show all
Defined in:
lib/cucumber/events/envelope.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#event_id, #to_h

Constructor Details

#initialize(envelope) ⇒ Envelope

Returns a new instance of Envelope.



14
15
16
17
# File 'lib/cucumber/events/envelope.rb', line 14

def initialize(envelope)
  @envelope = envelope
  super()
end

Instance Attribute Details

#envelopeObject (readonly)

Returns the value of attribute envelope.



8
9
10
# File 'lib/cucumber/events/envelope.rb', line 8

def envelope
  @envelope
end

Class Method Details

.event_idObject



10
11
12
# File 'lib/cucumber/events/envelope.rb', line 10

def self.event_id
  :envelope
end

Instance Method Details

#inspectObject



19
20
21
# File 'lib/cucumber/events/envelope.rb', line 19

def inspect
  "Envelope Event -> Message Type: #{type}}"
end

#to_sObject



23
24
25
# File 'lib/cucumber/events/envelope.rb', line 23

def to_s
  inspect
end