class Pio::OpenFlow13::Match

OpenFlow eXtensible Match (OXM)

Public Class Methods

new(user_attrs = {}) click to toggle source
# File lib/pio/open_flow13/match.rb, line 1316
def initialize(user_attrs = {})
  @format = if user_attrs.empty?
              Oxm.new
            else
              Oxm.new(Options.new(user_attrs).to_hash)
            end
end
read(raw_data) click to toggle source
# File lib/pio/open_flow13/match.rb, line 1310
def self.read(raw_data)
  allocate.tap do |message|
    message.instance_variable_set(:@format, Oxm.read(raw_data))
  end
end

Public Instance Methods

length() click to toggle source
# File lib/pio/open_flow13/match.rb, line 1324
def length
  @format.to_binary_s.length
end
method_missing(method, *args, &block) click to toggle source
# File lib/pio/open_flow13/match.rb, line 1328
def method_missing(method, *args, &block)
  @format.__send__ method, *args, &block
end