Class: Pio::StripVlanHeader

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/pio/strip_vlan_header.rb

Overview

An action to strip the 802.1q header.

Defined Under Namespace

Classes: Format

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeStripVlanHeader



29
30
31
# File 'lib/pio/strip_vlan_header.rb', line 29

def initialize
  @format = Format.new
end

Class Method Details

.read(raw_data) ⇒ Object



17
18
19
20
21
# File 'lib/pio/strip_vlan_header.rb', line 17

def self.read(raw_data)
  strip_vlan = allocate
  strip_vlan.instance_variable_set :@format, Format.read(raw_data)
  strip_vlan
end