class Pio::OpenFlow13::Apply
An instruction to apply a list of actions to a packet in-order.
Public Class Methods
new(actions = [])
click to toggle source
# File lib/pio/open_flow13/apply.rb, line 36 def initialize(actions = []) @format = Format.new(actions: actions) end
read(raw_data)
click to toggle source
# File lib/pio/open_flow13/apply.rb, line 23 def self.read(raw_data) allocate.tap do |apply| apply.instance_variable_set :@format, Format.read(raw_data) end end