Class: Pio::OpenFlow10::VendorAction
- Inherits:
-
Object
- Object
- Pio::OpenFlow10::VendorAction
- Extended by:
- Forwardable
- Defined in:
- lib/pio/open_flow10/vendor_action.rb
Overview
Vendor defined action
Defined Under Namespace
Classes: Format
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(vendor) ⇒ VendorAction
constructor
A new instance of VendorAction.
Constructor Details
#initialize(vendor) ⇒ VendorAction
Returns a new instance of VendorAction.
32 33 34 |
# File 'lib/pio/open_flow10/vendor_action.rb', line 32 def initialize(vendor) @format = Format.new(vendor: vendor) end |
Class Method Details
.read(raw_data) ⇒ Object
19 20 21 22 23 |
# File 'lib/pio/open_flow10/vendor_action.rb', line 19 def self.read(raw_data) allocate.tap do |strip_vlan| strip_vlan.instance_variable_set :@format, Format.read(raw_data) end end |