Class: Twib::Switch::Debug::Event::ExitProcess

Inherits:
Event
  • Object
show all
Defined in:
lib/twib/switch/debug.rb

Constant Summary collapse

TYPE =
2

Instance Attribute Summary collapse

Attributes inherited from Event

#flags, #thread_id

Instance Method Summary collapse

Methods inherited from Event

#initialize, unpack

Constructor Details

This class inherits a constructor from Twib::Switch::Debug::Event::Event

Instance Attribute Details

#typeObject (readonly)

Returns the value of attribute type.



62
63
64
# File 'lib/twib/switch/debug.rb', line 62

def type
  @type
end

Instance Method Details

#event_typeObject



59
60
61
# File 'lib/twib/switch/debug.rb', line 59

def event_type
  :exit_process
end

#unpack_specific(pack) ⇒ Object



56
57
58
# File 'lib/twib/switch/debug.rb', line 56

def unpack_specific(pack)
  @type = pack.unpack("L<")
end