Class: Pio::FlowMod::FlowModBody::Match

Inherits:
BinData::Primitive
  • Object
show all
Defined in:
lib/pio/flow_mod.rb

Overview

Pio::MatchFormat wrapper.

Instance Method Summary collapse

Instance Method Details

#getObject



41
42
43
# File 'lib/pio/flow_mod.rb', line 41

def get
  Pio::Match.read match
end

#set(object) ⇒ Object



37
38
39
# File 'lib/pio/flow_mod.rb', line 37

def set(object)
  self.match = object.to_binary_s
end